Re: Command To Run External File

2023-02-21 Thread Thomas Passin
Thanks for testing! I was surprised by all the terminals available, too. On my Mint virtual machine ( I have lightly annotated the responses): tom@tom-VirtualBox:~$ find /usr/bin -name *term -type f /usr/bin/setterm # Not a terminal - controls terminal properties /usr/bin/xterm /usr/bin/

Re: Command To Run External File

2023-02-21 Thread Edward K. Ream
On Monday, February 6, 2023 at 12:18:42 AM UTC-6 tbp wrote: I've been working on a command to run an external file (@file, @clean ...). I think it is ready, and I'd appreciate it if other folks could test it for me. Thanks to all who have commented. This has been an excellent group collabor

Re: Command To Run External File

2023-02-21 Thread jkn
The updated scripts seems to be working for me as well. It uses 'uxterm', which I never even knew I had installed! I agree that an optional setting for the terminal would be a good idea. J^n On Tuesday, February 21, 2023 at 12:30:14 AM UTC tbp1...@gmail.com wrote: > That's a good idea! I think

Re: Command To Run External File

2023-02-20 Thread Thomas Passin
That's a good idea! I think a setting would be the Leonine way to do it. When I convert this into a Leo command, I'll look at making it happen. On Monday, February 20, 2023 at 7:06:26 PM UTC-5 SegundoBob wrote: > Thomas Passin, > > Your fix passes all my tests. > > You say that you may not alw

Re: Command To Run External File

2023-02-20 Thread SegundoBob
Thomas Passin, Your fix passes all my tests. You say that you may not always be able to find the terminal program the user wants you to use. Maybe when you fail to find any suitable terminal program, you should report this to the user and ask him to enter the pathname to the terminal program

Re: Command To Run External File

2023-02-20 Thread Thomas Passin
@mike, that was a good diagnosis. When Leo is not run from a terminal (in Linux), the process space does not include a terminal and the shell may not even be the same shell (e.g., *sh* instead of *bash*) as one might expect. I have revised the terminal-finding code for Linux to try several heu

Re: Command To Run External File

2023-02-20 Thread Thomas Passin
Oh, I understand now. Thank you. I'll see what can be done. On Monday, February 20, 2023 at 8:09:22 AM UTC-5 SegundoBob wrote: > On 2/19/23 18:25, Thomas Passin wrote: > > " but it does not work when I use the file browser Thunar to open the > > Leo-editor file". I don't understand what you m

Re: Command To Run External File

2023-02-20 Thread jkn
I am seeing something similar to SegundoBob. I also tried it with a trivial python script. To spell out the details: (I run Kubuntu Linux) Leo Log Window Leo 6.7.2-devel, devel branch, build 4e9b1569de 2023-01-25 08:35:46 -0600 Python 3.10.6, PyQt version 5.15.3 linux 1) I make a node @cl

Re: Command To Run External File

2023-02-20 Thread Segundo Bob
On 2/19/23 18:25, Thomas Passin wrote: " but it does not work when I use the file browser Thunar to open the Leo-editor file".  I don't understand what you mean here, @SegundoBob. Your "execute external script" is invoked while running Leo-Editor. If you start Leo-Editor from a terminal comma

Re: Command To Run External File

2023-02-19 Thread Thomas Passin
" but it does not work when I use the file browser Thunar to open the Leo-editor file". I don't understand what you mean here, @SegundoBob. The intended use is to select - within Leo - a node in an external file, and have it run in (or get launched by) a terminal. How does the file browser

Re: Command To Run External File

2023-02-19 Thread Mike Hodson
On Sun, Feb 19, 2023, 17:02 SegundoBob wrote: > Your "Execute script" code works well for me when I use it from a > Leo-Editor file that I open from a terminal, but it does not work when I > use the file browser Thunar to open the Leo-editor file. > > When I invoke your script from a Leo-Editor f

Re: Command To Run External File

2023-02-19 Thread SegundoBob
Your "Execute script" code works well for me when I use it from a Leo-Editor file that I open from a terminal, but it does not work when I use the file browser Thunar to open the Leo-editor file. When I invoke your script from a Leo-Editor file opened by Thunar, I get this error message even wh

Re: Command To Run External File

2023-02-19 Thread Thomas Passin
Thanks, I'd appreciate it. On Sunday, February 19, 2023 at 12:38:04 PM UTC-5 jkn wrote: > sorry, I have installed it but not tried it. I'll give it a go this week > > On Sunday, February 19, 2023 at 2:27:15 AM UTC tbp1...@gmail.com wrote: > >> If nobody complains about it in another week, I'll pa

Re: Command To Run External File

2023-02-19 Thread jkn
sorry, I have installed it but not tried it. I'll give it a go this week On Sunday, February 19, 2023 at 2:27:15 AM UTC tbp1...@gmail.com wrote: > If nobody complains about it in another week, I'll package it up as a new > Leo command. > > On Monday, February 6, 2023 at 4:15:40 AM UTC-5 jkn wrot

Re: Command To Run External File

2023-02-18 Thread Thomas Passin
If nobody complains about it in another week, I'll package it up as a new Leo command. On Monday, February 6, 2023 at 4:15:40 AM UTC-5 jkn wrote: > I'll give it a try (kubuntu linux, mainly) and let you know what I find... > > On Monday, February 6, 2023 at 6:18:42 AM UTC tbp1...@gmail.com wrote

Re: Command To Run External File

2023-02-06 Thread jkn
I'll give it a try (kubuntu linux, mainly) and let you know what I find... On Monday, February 6, 2023 at 6:18:42 AM UTC tbp1...@gmail.com wrote: > I've been working on a command to run an external file (@file, @clean > ...). I think it is ready, and I'd appreciate it if other folks could test

Command To Run External File

2023-02-05 Thread Thomas Passin
I've been working on a command to run an external file (@file, @clean ...). I think it is ready, and I'd appreciate it if other folks could test it for me. The idea is that you select a node in the external file tree and launch the command. It works on Windows and Linux but not Mac (I need m