Re: Status report: Leo's new website

2023-01-20 Thread Thomas Passin
The Github README.md file on Github still has its links pointing to leoeditor.com. The links have been changed in devel, but master is what people will land on when coming to the site. On Friday, January 13, 2023 at 5:08:03 AM UTC-5 Edward K. Ream wrote: > On Thursday, January 12, 2023 at 5:57

Re: Status report: Leo's new website

2023-01-20 Thread Thomas Passin
I think what I'm seeing is that Speed's redirect of leoeditor.com is not in effect yet. I wonder how long it takes for a redirect to ripple through the system. On Friday, January 20, 2023 at 10:00:02 AM UTC-5 Thomas Passin wrote: > The Github README.md file on Github still

Re: Status report: Leo's new website

2023-01-20 Thread Thomas Passin
Hmm, I tried two different browsers and used CTRL-F5 to force a re-read. I wonder what the difference is? On Friday, January 20, 2023 at 10:27:48 AM UTC-5 Edward K. Ream wrote: > On Friday, January 20, 2023 at 9:07:36 AM UTC-6 tbp1...@gmail.com wrote: > I think what I'm seeing is that Speed's r

Re: Status report: Leo's new website

2023-01-20 Thread Thomas Passin
via Comcast, FWIW. On Friday, January 20, 2023 at 11:22:12 AM UTC-5 Edward K. Ream wrote: > On Fri, Jan 20, 2023 at 9:49 AM Thomas Passin wrote: > >> Hmm, I tried two different browsers and used CTRL-F5 to force a re-read. >> I wonder what the difference is? >> >

Re: Status report 2: Leo's new website

2023-01-20 Thread Thomas Passin
The splash screen still uses the old bitmaps, doesn't it? if sys.platform.startswith('win'): table = ('SplashScreen.jpg', 'SplashScreen.png', 'SplashScreen.ico') else: table = ('SplashScreen.xpm',) (after updating to the most recent changeset in devel). On Friday, Janu

Leo 6.7.1 From PyPi Failing On Linux Fedora

2023-01-22 Thread Thomas Passin
This is with python3.11.1 on a new Fedora virtual machine. Upgrading from PyQt5 to PytQ6 did not change anything. Symptoms: Leo window opens, tips window opens, ask-create-myLeoSettings dialog opens. After closing those windows, Leo is frozen with no error messages on the terminal. CTRL-C an

Re: Leo now shows an svg splash screen

2023-01-23 Thread Thomas Passin
This is good to see. I would like the splash screen to be smaller than 600 X 600. It seems much larger than the old screen, and also looks pixelated, a surprise for an SVG image. The SVG image opens at 804 pixels, according to Irfanview; trying half that looked about the right size for a spla

Re: OT? Beware of ChatGPT

2023-01-23 Thread Thomas Passin
The thing about ChatGPT and similar neural network systems is that they know how to string words and phrases together based on probability densities estimated during training, but they don't know about the underlying concepts. They don't know math but they can *sound* like they know math. So

Re: Work is nearly complete on Leo's website

2023-01-23 Thread Thomas Passin
Hmm, the old splash screen image doesn't seem to display. It does download, though. The Google Groups software doesn't want to include the image's file tyep (.ico). On Monday, January 23, 2023 at 2:03:14 PM UTC-5 Thomas Passin wrote: > I have been reworking the splash scree

Re: Leo now shows an svg splash screen

2023-01-23 Thread Thomas Passin
2 > > Will you be wanting me to upgrade to PyQt v6? I seem to remember I had > pain in that direction... > > Regards, J^n > > > On Monday, January 23, 2023 at 2:46:50 PM UTC Edward K. Ream wrote: > >> On Mon, Jan 23, 2023 at 8:24 AM Thomas Passin wrote: >>

Re: Leo now shows an svg splash screen

2023-01-23 Thread Thomas Passin
I found a simple fix. It's now in a pending PR. You have to repaint() the splash screen after show()ing it. It looks like the splash screen may never have been visible on Linux(!). On Monday, January 23, 2023 at 4:36:18 PM UTC-5 Thomas Passin wrote: > Hmm, I forgot to check with Linu

Re: Leo now shows an svg splash screen

2023-01-23 Thread Thomas Passin
Now I'm bummed. The splash screen displays properly on Manjaro, a Linux distro using XFCE. But on two Gnome systems, Mint and Debian, it acts the same as before I added the repaint() call. This will take some more digging. On Monday, January 23, 2023 at 6:25:17 PM UTC-5 Edward K. Ream wrote:

Re: Leo now shows an svg splash screen

2023-01-23 Thread Thomas Passin
r couple of data points that I hope might help. > > The splash screen does appear (and looks quite lovely now, in vector form > and without the watermark!) on my Windows 10 install. > > Jake > > On Mon, Jan 23, 2023 at 7:41 PM Thomas Passin wrote: > >> Now I'm

Re: Leo now shows an svg splash screen

2023-01-23 Thread Thomas Passin
mpletely painting, then closing or possibly getting moved to their final position. With the sleep(), those windows show up behind the splash screen. I'm not inclined to try to diagnose this behavior. On Monday, January 23, 2023 at 10:06:01 PM UTC-5 Thomas Passin wrote: > I've got

Re: Help with 'find-all' !!

2023-01-23 Thread Thomas Passin
I can confirm your results. On the second node body, only three of the five matches are reported. When I step through using F3 in the Find tab, it does find all five (one at a time). On Monday, January 23, 2023 at 10:49:28 PM UTC-5 Félix wrote: > i'm having some trouble with the 'find-all' co

Re: Leo now shows an svg splash screen

2023-01-23 Thread Thomas Passin
yes WIndows 10- -yes So maybe the splash screen doesn't show on systems with a Wayland display server? At this point, I'm not inclined tp spend any more time on this. I'll put in a PR with the sleep() added and call it a day for now. On Monday, January 23, 2023 at 11:

Re: Help with 'find-all' !!

2023-01-24 Thread Thomas Passin
Since *Find* can find all the matches one at a time, I'm thinking the problem has something to do with the way that results are collected. On Tuesday, January 24, 2023 at 5:23:11 AM UTC-5 Edward K. Ream wrote: > On Mon, Jan 23, 2023 at 9:49 PM Félix wrote: > > i'm having some trouble with the '

Re: Leo now shows an svg splash screen

2023-01-24 Thread Thomas Passin
339) On Tuesday, January 24, 2023 at 4:46:28 AM UTC-5 Edward K. Ream wrote: > On Mon, Jan 23, 2023 at 11:01 PM Thomas Passin wrote: > >> The fix (adding sleep()) works on all my VMs except Ubuntu. OTOH, Leo >> loads so fast on my Ubuntu VM that I don't really miss the splash

Re: Leo now shows an svg splash screen

2023-01-24 Thread Thomas Passin
Turns out that the Wayland display server has a long-standing problem with splash screens - Centered/Splash shell surfaces <https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/67> On Tuesday, January 24, 2023 at 9:39:23 AM UTC-5 Thomas Passin wrote: > Maybe

Re: Help with 'find-all' !!

2023-01-24 Thread Thomas Passin
On Tuesday, January 24, 2023 at 11:09:59 AM UTC-5 Edward K. Ream wrote: On Tue, Jan 24, 2023 at 7:21 AM Thomas Passin wrote: Since *Find* can find all the matches one at a time, I'm thinking the problem has something to do with the way that results are collected. Right. The culprit is

Re: Help with 'find-all' !!

2023-01-24 Thread Thomas Passin
On Tuesday, January 24, 2023 at 6:46:54 PM UTC-5 Edward K. Ream wrote: . For example, find-all could return a list of dicts of the form: { 'gnx': , 'head': list of indices of matches in the v.h, 'body': list of indices of matches in the v.b, } Given this data, the find-all could easily c

Re: Improved find-all command now in devel

2023-01-25 Thread Thomas Passin
Thanks for this hard work! The new results format is certainly a big improvement! And the new code reads better, too. I would probably have tried to move make_result_from_matches() outside _find_all_helper()and let it be called separately after the matches are returned, but at least this way

Interesting Post On Ultra-fast Pattern Matching, m Go, and Git/Github

2023-01-26 Thread Thomas Passin
A post by Tim Bray on his "Ongoing" blog. It centers on his superfast pattern-matching software. Tim used to work for AWS, hence the references to it. There's a link at the bottom to a blog about using Git/Github. Probably worth reading for GitHub users. -- You received this message becaus

Re: Interesting Post On Ultra-fast Pattern Matching, m Go, and Git/Github

2023-01-26 Thread Thomas Passin
Oops! Ongoing . On Thursday, January 26, 2023 at 9:41:32 AM UTC-5 Edward K. Ream wrote: > On Thursday, January 26, 2023 at 8:33:17 AM UTC-6 tbp1...@gmail.com wrote: > A post by Tim Bray on his "Ongoing" blog. It centers on his supe

Re: OT? Beware of ChatGPT

2023-01-26 Thread Thomas Passin
Here's an interesting post on Large Language Models, ChatGPT, and AI more generally - Janus' Simulators <https://astralcodexten.substack.com/p/janus-simulators> On Monday, January 23, 2023 at 12:24:44 PM UTC-5 Edward K. Ream wrote: > On Mon, Jan 23, 2023 at 9:10 AM T

Re: Thomas: Rev d89b7c adds pylint suppressions. Only VR3 affected

2023-01-27 Thread Thomas Passin
As you probably remember, VR3 inherited lots of code from VR2, which inherited from VR. And some new code I worked up more or less followed similar code from those earlier versions. I've been hoping to avoid restructuring any of that code, but maybe I should consider it at last. With this new

Re: Thomas: Rev d89b7c adds pylint suppressions. Only VR3 affected

2023-01-27 Thread Thomas Passin
On Friday, January 27, 2023 at 4:33:45 PM UTC-5 Edward K. Ream wrote: Did you update your *active* copy of pylint-leo-rc.txt? You shouldn't be seeing these complaints. I don't know what you mean. The new version is in its place in leo/test. What else needs to be done to make it "active"?

Re: In hospital for severe abdominal pains

2023-01-27 Thread Thomas Passin
Feel better soon, from all of us. On Friday, January 27, 2023 at 6:30:31 PM UTC-5 Félix wrote: > Got some tests done, its not apendicite... Being treated and received pain > killers. > > Worst is behind now . Feeling better . > > Thanks to all leonistas who support Leointeg and leojs! > > Félix

Re: Thomas: Rev d89b7c adds pylint suppressions. Only VR3 affected

2023-01-27 Thread Thomas Passin
What, you can't set a command line option to point the the file? OK, I'll go on a hunt. On Friday, January 27, 2023 at 7:32:29 PM UTC-5 Edward K. Ream wrote: > On Fri, Jan 27, 2023 at 4:27 PM Thomas Passin wrote: > >> >> >> On Friday, January 27, 2023 at 4:3

Re: Thomas: Rev d89b7c adds pylint suppressions. Only VR3 affected

2023-01-27 Thread Thomas Passin
I see - rc_fn = 'pylint-leo-rc.txt' table = ( os.path.abspath(os.path.join(home_dir, '.leo', rc_fn)), os.path.abspath(os.path.join(base_dir, 'leo', 'test', rc_fn)), ) On Friday, January 27, 2023 at 8:59:49 PM UTC-5 Thomas Passin

Re: Im out of the hospital and feeling better

2023-01-28 Thread Thomas Passin
I'm glad to hear you are home again. I've been in the hospital twice for a kidney stone, so I have an idea of what you've been going through. Once my stones made it to the bladder, I felt much better. On Saturday, January 28, 2023 at 10:37:01 AM UTC-5 Félix wrote: > It was a kidney stone betw

Re: Im out of the hospital and feeling better

2023-01-28 Thread Thomas Passin
What I have found over the years (It's been 30 years since I had my first stone episode) is that from time to time I would get some of the symptoms - it's an unmistakable pattern except that so much time passes in between that I forget. When I realize I'm working up to another episode, I drink

Re: OT? Beware of ChatGPT

2023-01-29 Thread Thomas Passin
Humans probably have a level of abstraction that is most susceptible to manipulation. It would perhaps differ between people to an extent, and also perhaps with the kind of subject being manipulated. I suspect that it is at a level that would correspond to "species" or the next higher level.

Re: OT? Beware of ChatGPT

2023-01-31 Thread Thomas Passin
n Sunday, January 29, 2023 at 11:25:38 PM UTC-5 Thomas Passin wrote: > Humans probably have a level of abstraction that is most susceptible to > manipulation. It would perhaps differ between people to an extent, and > also perhaps with the kind of subject being manipulated. I suspect

CTRL-Click Can Now Navigate To Import Statements

2023-01-31 Thread Thomas Passin
The CTRL-Click feature has been extended so that if you CTRL-Click on a line that starts with import module or from module import, Leo will navigate to an external file whose filename is *module.py* or *module.pyw*, if it is the same outline. This also works if the import statement includes pa

Re: CTRL-Click Can Now Navigate To Import Statements

2023-01-31 Thread Thomas Passin
On the list of CTRL-click actions, I forgot navigating to function definitions. On Tuesday, January 31, 2023 at 2:36:15 PM UTC-5 Thomas Passin wrote: > The CTRL-Click feature has been extended so that if you CTRL-Click on a > line that starts with import module or from module import, Le

Viewrendered3 Improvements

2023-01-31 Thread Thomas Passin
The viewrendered3 plugin has a command *vr3-open-markup-in-editor* . In the case of plain text (*@language text* and *@language plain*) nodes, this used to export only the selected node, not the entire subtree, even if the *Entire Tree* option was selected. This has been corrected. In additi

Re: Aha! A better way to study code

2023-02-01 Thread Thomas Passin
Yes, one step closer to literate programming without weave, etc. Often I use << named sections >> as a kind of pseudo-code to clarify what's going on. I'd like it if we could have organizer nodes like this in external files, too. On Wednesday, February 1, 2023 at 11:14:20 AM UTC-5 Edward K. R

Re: Aha! A better way to study code

2023-02-01 Thread Thomas Passin
10:40 AM Thomas Passin wrote: > > Yes, one step closer to literate programming without weave, etc. Often I >> use << named sections >> as a kind of pseudo-code to clarify what's going >> on. I'd like it if we could have organizer nodes like this in extern

Re: Aha! A better way to study code

2023-02-01 Thread Thomas Passin
Well, it's not really a bug - you just have to prefix each body of code in the tree with a code language directive (@language code), otherwise VR3 doesn't know that the node is code and not markdown/rst/etc. On Wednesday, February 1, 2023 at 1:51:07 PM UTC-5 Thomas Passin wrote:

Re: Aha! A better way to study code

2023-02-03 Thread Thomas Passin
The attached outline has some icons attached to headlines. It was posted for issue 3121 by @wangzhaohe. I don't know how he attached them, but it gives a dramatic example. On Friday, February 3, 2023 at 10:15:38 AM UTC-5 Edward K. Ream w

Re: Coming soon in LeoInteg 1.0.12 (...and leojs beta!)

2023-02-03 Thread Thomas Passin
Felix, you have done a lot of hard work! I've been wondering what the possibilities will be for writing scripts for LeoInteg or LeoJS (of course, in Java/Type -script instead of Python)? How hard will it be to code up and run small utility scripts, for example? On Friday, February 3, 2023 at

Testing "Equality" Floating Numbers In Unit Testing

2023-02-03 Thread Thomas Passin
In working on developing unit tests for my GF4 project, I'm going to have to compare expected vs actual results of floating point numbers. This subject is notoriously difficult to get "right" - there are all kinds of pitfalls one would never think about. The standard Python library now has on

Re: Aha! A better way to study code

2023-02-04 Thread Thomas Passin
I don't see a matching *remove-icon* command, though. On Saturday, February 4, 2023 at 9:45:49 AM UTC-5 Edward K. Ream wrote: > On Sat, Feb 4, 2023 at 6:35 AM jkn wrote: > >> That's cool, thanks. so even now I can do "insert-icon" / (browse to an >> icon) , and have it be added to a node ;-

Re: Revised: Info issue #2867 re developer scripts

2023-02-04 Thread Thomas Passin
I use a c:\usr\bin directory to make it more Linux-like. I just couldn't get myself to make a ~\.local\bin directory, though. Maybe I should reconsider... There's no need t make the scripts @clean trees. @file with @language batch works well enough (thought I prefer to use "::" On Saturday,

Re: Revised: Info issue #2867 re developer scripts

2023-02-04 Thread Thomas Passin
" There's no need t make the scripts @clean trees. @file with @language batch works well enough (thought I prefer to use "::"" Darn, posted before I was done. That's supposed to read There's no need to make the scripts @clean trees. @file with @language batch works well enough (though I pref

Re: Why nits matter

2023-02-05 Thread Thomas Passin
It might be easiest to copy the gnx of the next child node (if there is one), and then go to that gnx after the delete. That way you wouldn't have to worry about positions changing, On Sunday, February 5, 2023 at 4:13:23 PM UTC-5 Félix wrote: > I'll just chime in to say this is not trivial. (a

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

Python Developer Of The Week

2023-02-06 Thread Thomas Passin
I gave an email interview to the PyDev Of The Week series. Edward was featured there several years ago so I'm in good company. I'm posting it here because I talk quite a bit about Leo. PyDev Of The Week <https://www.blog.pythonlibrary.org/2023/02/06/pydev-of-the-week-thomas-pass

Pipx

2023-02-06 Thread Thomas Passin
I just tried out pipx, which is a Python install program that wraps pip such that for each installed package, it creates a separate virtual environment, installs into that, and creates executables to launch each of the entry points. I believe that it installs basically similar to using --edita

Re: Pipx

2023-02-06 Thread Thomas Passin
Link for pipx <https://pypa.github.io/pipx/> On Monday, February 6, 2023 at 5:33:37 PM UTC-5 Thomas Passin wrote: > I just tried out pipx, which is a Python install program that wraps pip > such that for each installed package, it creates a separate virtual > environment, ins

Re: Python Developer Of The Week

2023-02-06 Thread Thomas Passin
Thanks, guys! On Monday, February 6, 2023 at 7:30:27 PM UTC-5 Félix wrote: > That's pretty cool!! :) > > Félix > > On Monday, February 6, 2023 at 4:16:01 PM UTC-5 Edward K. Ream wrote: > >> On Mon, Feb 6, 2023 at 9:58 AM Thomas Passin wrote: >> >>> I

GUI For Using Git

2023-02-09 Thread Thomas Passin
I use a GUI program to help me with using git/GitHub. I'm sure I'm not alone. On Windows I have been used the Windows-only *Git eXtension*s, which works well enough but sometimes I'm not quite sure what some operations are going to do. On Linux I've been using* Git-Cola,* which is simpler, b

Re: GUI For Using Git

2023-02-10 Thread Thomas Passin
They do like to promote themselves. I've only had it installed for two days, so all I know that it seems decent. If I start getting too much spam email, I'll get my email client to deep-six it. I don't use git often enough to really retain commands that are more than simple pulls, etc, and I'

Leo's pylint Command Enhanced

2023-02-10 Thread Thomas Passin
The pylint command now can run pylint against a subtree that is not an external file (@file, @clean, ...). The old behavior is still in place. The command looks up the tree from the focused node to see if that node is in the subtree of an external Python file. If yes, it runs against that fil

Re: Leo's pylint Command Enhanced

2023-02-10 Thread Thomas Passin
On Friday, February 10, 2023 at 9:38:22 AM UTC-5 Edward K. Ream wrote: On Fri, Feb 10, 2023 at 8:04 AM Thomas Passin wrote: The pylint command now can run pylint against a subtree that is not an external file (@file, @clean, ...). Many thanks, Thomas, for this work. For a long time I didn&#

Re: Leo package as published on test.pypi.org

2023-02-13 Thread Thomas Passin
Typo in the URL - should be test.pypi.org. As for staleness, it's only for testing the packaging to make sure it will work on PyPi, so maybe the staleness is not too important. On Monday, February 13, 2023 at 11:14:35 AM UTC-5 David Szent-Györgyi wrote: > I was looking for a pypy package of ot

Body Nodes That Do Not Use A Mono-spaced Font

2023-02-14 Thread Thomas Passin
Leo uses a mono-spaced font for body text. No doubt this comes from Leo's background as a programming editor/IDE. But many people don't use it like that, or not only like that. They use it for creating documents, notes, or other non-programming uses. For these uses, non-monospaced fonts can

Re: Body Nodes That Do Not Use A Mono-spaced Font

2023-02-15 Thread Thomas Passin
@ekr: "Leo uses a mono-spaced font for body text. Happy, this statement is not correct. Unless I am mistaken, Leo can already do what you want." My statement was oversimplified - the body font is normally set in the stylesheet and it could be chosen to be a non-monospaced font. -- You receive

Re: Body Nodes That Do Not Use A Mono-spaced Font

2023-02-15 Thread Thomas Passin
@ekr: "I suspect that adding a node @font rest fonts will suffice." I must be missing the magic way to do this, because none of these changed the font for *@language rest* nodes. I've tried: headline: @font rest body: font-family = Georgia headline: @font rest body: font-family: Georgia head

Re: Body Nodes That Do Not Use A Mono-spaced Font

2023-02-15 Thread Thomas Passin
er handler uses special bespoke classes. So there may be a bug that the special Forth code works around but no other language hits. On Wednesday, February 15, 2023 at 10:32:48 AM UTC-5 Edward K. Ream wrote: On Wed, Feb 15, 2023 at 8:09 AM Thomas Passin wrote: @ekr: "I suspect that a

Re: Body Nodes That Do Not Use A Mono-spaced Font

2023-02-15 Thread Thomas Passin
Not quite true: there are a few @font php nodes too. On Wednesday, February 15, 2023 at 1:59:55 PM UTC-5 Thomas Passin wrote: In the standard Leo distro, those @nodes are only used for @language forth, and the Forth colorizer handler uses special bespoke classes. So there may be a bug that

Re: Body Nodes That Do Not Use A Mono-spaced Font

2023-02-15 Thread Thomas Passin
The only place the jEdit colorizer does anything about fonts is this: def getFontFromParams(self, family: Any, size: Any, slant: Any, weight: Any, defaultSize: int = 12) -> None: return None That is to say, it does nothing about getting or setting fonts. -- You received this message becaus

Re: Feature to upgrade leoInteg and vscode

2023-02-16 Thread Thomas Passin
And done ... On Thursday, February 16, 2023 at 8:47:57 AM UTC-5 Edward K. Ream wrote: > On Thu, Feb 16, 2023 at 12:31 AM Félix wrote: > >> If you feel like it and have 5 seconds of free time, I would recommend >> upvoting this vscode feature request, which could benefit leoInteg and >> leojs :

Re: Body Nodes That Do Not Use A Mono-spaced Font

2023-02-17 Thread Thomas Passin
Here is a script so you can see if you like the effect of having a non-monospaced font for non-code bodies. It only works for @language rest nodes. Copy the script below into a node in your workbook. Run it with CTRL-B. After that, any time you switch to an *@language rest* node, it will use

Re: Body Nodes That Do Not Use A Mono-spaced Font

2023-02-17 Thread Thomas Passin
lf_and_parents(): if has_direct(p.b, p.h): css = STYLE break editor = c.frame.body.wrapper.widget editor.setStyleSheet(css) ud = g.user_dict ud['alt_body_font_proc'] = set_alt_body_font g.registerHandler('select3', ud['alt_body_f

Re: Body Nodes That Do Not Use A Mono-spaced Font

2023-02-18 Thread Thomas Passin
11:45:05 AM UTC-5 Edward K. Ream wrote: > On Fri, Feb 17, 2023 at 5:00 PM Thomas Passin wrote: > >> Here is a script so you can see if you like the effect of having a >> non-monospaced font for non-code bodies. > > > Thanks, Thomas, for this work. PR #3150 > <

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-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 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-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"

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
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. > >

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/

Links On Leo's GitHub Page Are Still Obsolete

2023-02-21 Thread Thomas Passin
Many of the links on the top GitHub page still point to leoeditor.com, and the Download link points to the old SourceForge page, with the latest version there going back to 2018. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe fro

New Command "execute-external-file" Now In Devel

2023-02-22 Thread Thomas Passin
The new command to run external files, "execute-external-file", is now in the devel branch. Thanks to all who helped me test and improve it! This new minibuffer command will find the nearest external file root node, try to figure out what kind of processor to run it - python, ruby, julia, etc.

Re: Leo 6.7.2 delayed until Friday, March 3

2023-02-23 Thread Thomas Passin
Thanks for still being the chief wrangler of all these activities! On Thursday, February 23, 2023 at 4:41:30 AM UTC-5 Edward K. Ream wrote: > On Wednesday, February 22, 2023 at 10:31:16 AM UTC-6 Edward K. Ream wrote: > Recent bugs make an extra week of testing seem prudent. > > *Status report* >

Thumb-nail Explanation Of Leo

2023-02-25 Thread Thomas Passin
Leo is notoriously to explain to people. Most attempts start out something like "It's a text editor, an IDE, oh, yes, a PIM, and so much more". The listener is not very enlightened. I've been bugged by this, so I have been working on refining the Leo's purpose and key concepts. I'd like to

Re: Thumb-nail Explanation Of Leo

2023-02-25 Thread Thomas Passin
On Saturday, February 25, 2023 at 12:11:31 PM UTC-5 I wrote: Leo is notoriously to explain to people. Most attempts start out something like "It's a text editor, an IDE, oh, yes, a PIM, and so much more". The listener is not very enlightened. That should have read "Leo is notoriously hard

Re: Thumb-nail Explanation Of Leo

2023-02-25 Thread Thomas Passin
My last post was deleted for some reason. "*Literate Programming with Directed Acyclic Graphs (dag)" - *well, yes, but it's a very limited subset of what Leo can do. "*Use Leo, the Literate Editor with Outlines, to program with directed acyclic graphs, along with section-references, @others,

Programming By Contract for Python

2023-02-25 Thread Thomas Passin
I just learned something new that may be of interest to some devs. There are a few packages that add Programming By Contract to Python. In particular, iContract: https://github.com/Parquery/icontract If you have not heard of this approach, it was introduced in the Eiffel language in the late

Re: Thumb-nail Explanation Of Leo

2023-02-26 Thread Thomas Passin
Thanks ... I'll see how to work that in. It might fit in as one of the key concepts. On Sunday, February 26, 2023 at 5:54:59 PM UTC-5 stevelitt wrote: > Thomas Passin said on Sat, 25 Feb 2023 09:11:31 -0800 (PST) > > > >Leo's key concepts include a tree-like organizati

Re: Leo Themes - Tweaks and Comparisons

2023-02-27 Thread Thomas Passin
Looking at the images I just posted, they all have a slight lack of sharpness. It must be something about resizing done by Google Groups, because the originals look sharper. On Monday, February 27, 2023 at 9:18:45 PM UTC-5 Thomas Passin wrote: > From time to time I revisit Leo's colo

Re: Thumb-nail Explanation Of Leo

2023-02-27 Thread Thomas Passin
akes possible a divide-and-conquer strategy." On Sunday, February 26, 2023 at 6:02:29 PM UTC-5 Thomas Passin wrote: > Thanks ... I'll see how to work that in. It might fit in as one of the > key concepts. > > On Sunday, February 26, 2023 at 5:54:59 PM UTC-5 stevelitt wrote: &

Re: Thumb-nail Explanation Of Leo

2023-02-28 Thread Thomas Passin
On Tuesday, February 28, 2023 at 12:03:04 PM UTC-5 off...@riseup.net wrote: I think that your explanation is pretty complete. For me, one of the most important aspects of Leo is that the structure of the plain-text documents is not only implicit, and in that sense "rarely visualized", as you p

Re: Two standard outline editing commands

2023-03-02 Thread Thomas Passin
On Thursday, March 2, 2023 at 3:41:48 PM UTC-5 chr...@gmail.com wrote: If these two indeed don't exist, can they be added by scripting? via a plugin? Maybe I could dot hat, but am not yet quite sure yet, gotta read more doc. The best way to proceed, IMHO, is to develop the script in your wor

Windows Console Colors To Match Your Leo Theme

2023-03-04 Thread Thomas Passin
Would you like your Windows console colors to be like your Leo theme? In this post I will explain how to make this happen, at least if you use one of my solarized or quasi-solarized themes. In the next post I will give you a few tips to make changing themes easier. In a post after that I will

Re: Windows Console Colors To Match Your Leo Theme (Part 2)

2023-03-04 Thread Thomas Passin
To make changing your console color themes easier, it's worth while making either a batch file or some aliases. Doskey aliases are probably less familiar, so that's what I will cover in this post. Here is a doskey alias for making the console change to the tbp-dark.ini theme (the command shoul

Re: Windows Console Colors To Match Your Leo Theme (Part 2)

2023-03-04 Thread Thomas Passin
This is Part 3 of the series on changing Windows console colors to match your Leo theme. This post is Part 3, the last part, of the series on making and using Windows console color themes. The ColorTool.exe program (see Part 1) makes it relatively easy to modify an existing theme. To create o

Re: LeoInteg 1.0.12 Released!

2023-03-05 Thread Thomas Passin
Very nice work, Felix! On Sunday, March 5, 2023 at 1:55:39 AM UTC-5 Félix wrote: > > [image: banner1.0.12.png] > *Requires Leo Version 6.7.2 > * > > 🎉 *I'm happy to announce the release of LeoInteg 1.0.12 >

For Devs: An @notImplemented Decorator

2023-03-09 Thread Thomas Passin
It can be helpful to be able to handle functions/methods that have not been implemented. This is often done by having them print a string (such as "Not Implemented") and returning. This is a bit clumsy and one needs to edit it out when the function is ready to test. As an alternative, I some

Re: For Devs: An @notImplemented Decorator

2023-03-10 Thread Thomas Passin
" pylint prefers NotImplementedError." - EKR Often during development I prefer not to handle an exception, and want the program continue to run. Though I suppose I could put exception handling into the decorator. -- You received this message because you are subscribed to the Google Groups "

Re: OT: Breakthrough: "Liquid" neural networks

2023-03-11 Thread Thomas Passin
Interesting! And also hot off the presses, the complete neural structure of the brain of the fruit fly larva has been mapped. It has 93 neuron types, 3016 neurons, with, get this, *548,000* interconnections. The "liquid neural network" described in the Quanta article has 19 neurons and 253

More Git Techniques From The Old New Thing

2023-03-15 Thread Thomas Passin
Raymond Chen sometimes shares git-wrangling techniques. Today's offering: How can I create a git feature branch that can merge into multiple other branches? -- You received this message because you are subscribed to the Google

Re: Unable to create Leo's Documentation locally

2023-03-17 Thread Thomas Passin
The following script will build everything except the slides. Either it needs to be run from the *leo/doc* directory or the path needs to be added to the script instead of the "." in the last line: #see https://github.com/leo-editor/leo-editor/issues/1566 import sys import subprocess pyexe=sys.

Re: Please test PR #3150: @font and @color bugs

2023-03-17 Thread Thomas Passin
I'm very confused here. On Friday, March 17, 2023 at 10:55:27 AM UTC-4 Edward K. Ream wrote: PR #3150 fixes problems with `@color` and `@font` settings. Apparently @font settings have not been working for a year or more. In that sense, the ch

Re: Unable to create Leo's Documentation locally

2023-03-18 Thread Thomas Passin
On Saturday, March 18, 2023 at 1:28:05 PM UTC-4 viktor@gmail.com wrote: Hello Thomas I used a slightly simpler version, since I did not want to add any dependency & make it non-windows specific: import sys import subprocess pyexe = sys.executable cmd = [pyexe, '-m', 'sphinx', '-C',

New Way To Expand/Contract Leo Trees

2023-03-25 Thread Thomas Passin
Just merged into the devel branch is a new way to expand or contract nodes using the mouse. When you hold the CTRL key and move the mouse over a node, it will expand. When you hold down the SHIFT key instead, the node will contract. In practice, this means that you can just wave the mouse ove

Move Location Of ~/.leo File For Future Installs?

2023-03-25 Thread Thomas Passin
@paolomi has requested that Leo's user's home directory be moved - on Linux - from the location it has always had to a new one. The current location is ~/.leo. @paolomi thinks it should not be in ~/ so as to reduce clutter in the user's home directory. Existing installations would not be chan

Re: Move Location Of ~/.leo File For Future Installs?

2023-03-25 Thread Thomas Passin
Thanks for your thoughts, Felix. XDG is one of those not-quite-standards that is supposed to promote interoperability and "sane" locations for various kinds of system files and others. I'm no expert but it seems to me that some major distros follow it less strictly for user locations than oth

<    3   4   5   6   7   8   9   10   11   12   >