Re: Images In Leo Nodes?

2023-04-22 Thread Thomas Passin
d outside of Leo won't have any images anyway. On Tue, Mar 28, 2023 at 5:04 PM Thomas Passin wrote: It would be very useful if an image could be embedded into a Leo body. Probably no one would want to do this in a program or script, but for documentation it could be very helpful. ...

Plugin xsltWithNodes.py Can no longer work

2023-04-21 Thread Thomas Passin
The plugin requires a library that no longer exists (4Suite). Is there a standard way to handle plugins that are too obsolete? Do they move to the attic? -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop

Formal Verification - TLA+

2023-04-21 Thread Thomas Passin
" TLA+ is a high-level language for modeling programs and systems--especially concurrent and distributed one" TLA+ Home page It's probably worth going quickly to this page on the site -Industrial Use of TLA+

Re: Impressive ChatGPT responses

2023-04-21 Thread Thomas Passin
8, 2023 at 6:42 PM Thomas Passin wrote: > > ...I am not sure I am ever going to write code completely by hand again! >> And I expect these tools to get better fast." > > > Thanks for this quote. I wouldn't dispute it. > > My prediction: some time in the future AI's

Re: Dropping a file vs importing it: @edit vs @auto

2023-04-19 Thread Thomas Passin
s for). >> >> On Wednesday, April 19, 2023 at 10:43:49 AM UTC-4 Edward K. Ream wrote: >> >>> On Wed, Apr 19, 2023 at 9:04 AM Thomas Passin wrote: >>> >>> If there is a Leo shortcut on the desktop and you drag and drop a >>>> non-

Re: Dropping a file vs importing it: @edit vs @auto

2023-04-19 Thread Thomas Passin
Well, it's not *too* mysterious. When you drop the file its path gets added to the command line that the OS uses to launch Leo (or whatever program the desktop icon is for). On Wednesday, April 19, 2023 at 10:43:49 AM UTC-4 Edward K. Ream wrote: > On Wed, Apr 19, 2023 at 9:04 AM Thomas Pas

Dropping a file vs importing it: @edit vs @auto

2023-04-19 Thread Thomas Passin
If there is a Leo shortcut on the desktop and you drag and drop a non-Leo file on it, an instance of Leo will start and contain an @edit node for the dropped file (a .cmd file will be put into an @file node). If you import the same file, it will get imported into an @auto subtree. Why the

Re: Impressive ChatGPT responses

2023-04-18 Thread Thomas Passin
so I tried that above…and it still wasn’t enough. But: This has already changed the way I code. I am not sure I am ever going to write code completely by hand again! And I expect these tools to get better fast." On Monday, April 17, 2023 at 8:11:26 AM UTC-4 Thomas Passin wrote: > And th

Re: PR #3286 merged into devel. Please continue testing

2023-04-18 Thread Thomas Passin
modules expect the function to act that way. On Tuesday, April 18, 2023 at 12:58:46 PM UTC-4 Thomas Passin wrote: > g.os_path_join() is still doing the right thing on my system. > > On Tuesday, April 18, 2023 at 12:34:10 PM UTC-4 Edward K. Ream wrote: > >> On Tuesday, April 18, 2

Re: PR #3286 merged into devel. Please continue testing

2023-04-18 Thread Thomas Passin
g.os_path_join() is still doing the right thing on my system. On Tuesday, April 18, 2023 at 12:34:10 PM UTC-4 Edward K. Ream wrote: > On Tuesday, April 18, 2023 at 11:10:29 AM UTC-5 Edward K. Ream wrote: > > I've made copies of the g.os_path_expanduser and g.os_path_join as they > existed in

Re: PR #3286 merged into devel. Please continue testing

2023-04-18 Thread Thomas Passin
This has fixed the g.os_path_join() problem. On Tuesday, April 18, 2023 at 11:50:23 AM UTC-4 Edward K. Ream wrote: > On Tuesday, April 18, 2023 at 10:46:39 AM UTC-5 Edward K. Ream wrote: > > PR #3286 is now in > devel. It restores some

Re: PR #3277 has been merged into devel

2023-04-18 Thread Thomas Passin
However, the function *did* exist on the previous changeset: Leo 6.7.3-devel, devel branch, build edf4b48991 2023-04-16 08:20:16 -0500 Python 3.11.3, PyQt version 6.4.3 Windows 10 AMD64 (build 10.0.19044) SP0 On Tuesday, April 18, 2023 at 7:01:50 AM UTC-4 lewis wrote: > Running this script

Re: VR3 can now be opened in a tab

2023-04-17 Thread Thomas Passin
Here is an alternative way to delete a tab, where you type the tab name into the minibuffer. The code can go into an @command or @button node: """Delete named tab from log frame. Get tab name to delete from minbuffer.""" def delete_tab(): """State 0""" k = c.k

Re: Last call for reviews of PR #3277: improved path functions

2023-04-17 Thread Thomas Passin
that's good, too. On Monday, April 17, 2023 at 8:08:10 AM UTC-4 Thomas Passin wrote: > I haven't been having any problems. All my external files I've been > working with open and save correctly. I've been holding off saying > anything until I have some more experience with the new cod

Re: Impressive ChatGPT responses

2023-04-17 Thread Thomas Passin
And there's this slashdot report - https://slashdot.org/story/23/04/14/2152250/overemployed-hustlers-exploit-chatgpt-to-take-on-even-more-full-time-jobs?utm_source=rss1.0mainlinkanon_medium=feed People are using ChatGPT to be able to take on additional side hustles. it does much of the extra

Re: Last call for reviews of PR #3277: improved path functions

2023-04-17 Thread Thomas Passin
I haven't been having any problems. All my external files I've been working with open and save correctly. I've been holding off saying anything until I have some more experience with the new code, but so far so good. I have not tried constructing any new external path expressions as yet. On

Re: Creating Qt Apps That Run In A Tab

2023-04-16 Thread Thomas Passin
of parlor trick, yet can be useful. On Thursday, April 13, 2023 at 12:08:21 PM UTC-4 Thomas Passin wrote: > In my first post on apps in tabs, I wrote this: > > There are three parts to these "tabbed" apps: > > 1. Creating the top-level QWidget; > 2. Inserting it into a

Re: Example of me using chatGPT

2023-04-16 Thread Thomas Passin
Reading more of the material, and the published paper on solving the Raven's Progressive Matrices, I'm not convinced that the RPM situation is as impressive as it seems. It reminded me of Bart Kosko's writings from around 20 years ago on using a Neural Network to find a ruleset to be used by

Re: Example of me using chatGPT

2023-04-15 Thread Thomas Passin
: > On Sat, Apr 15, 2023 at 8:00 AM Thomas Passin wrote: > > I have some reservations about using cosine similarity with vectors like >> this. >> > > Good study question. It seems the authors are not concerned, presumably > for good reasons. > > A related questio

Re: Example of me using chatGPT

2023-04-15 Thread Thomas Passin
Very interesting! I just started reading the home page link. I was struck by this statement: " HD/VSA addresses these challenges by providing a binding operator associating individual (John, Mary) with roles (AGENT, PATIENT) and a

Re: Creating Qt Apps That Run In A Tab

2023-04-13 Thread Thomas Passin
t;< Main Widget >> toggle(log) Next time: how to toggle the tab on and off without deleting our widget. On Thursday, April 13, 2023 at 9:27:39 AM UTC-4 Thomas Passin wrote: > I have re-organized the code a bit to make to easier to read. It does the > same job as bef

Re: Creating Qt Apps That Run In A Tab

2023-04-13 Thread Thomas Passin
log.contentsDict[WIDGET_NAME] = w # If this is the first call of toggle(), create our widget's code # This will work for (nearly?) any subclass of QWidget. # Define the widget's class. It will be instantiated when # toggle(log) runs. if not log.contentsDict.get(WIDGET_NAME, None): <

Re: ENB: For Thomas and Félix: more about PR #3277

2023-04-13 Thread Thomas Passin
Or maybe I misunderstood and the references to os.cwd() only refer to the unit tests and not to how the paths are constructed when used in an outline? On Thursday, April 13, 2023 at 10:16:57 AM UTC-4 Thomas Passin wrote: > On Thursday, April 13, 2023 at 10:13:11 AM UTC-4 Thomas Passin wr

Re: ENB: For Thomas and Félix: more about PR #3277

2023-04-13 Thread Thomas Passin
On Thursday, April 13, 2023 at 10:13:11 AM UTC-4 Thomas Passin wrote: On Thursday, April 13, 2023 at 9:32:36 AM UTC-4 Edward K. Ream wrote: [...] *Testing* *test_g_finalize* and *test_g_finalize_join* were responses to Thomas's compatibility concerns. I worked on these two tests

Re: ENB: For Thomas and Félix: more about PR #3277

2023-04-13 Thread Thomas Passin
On Thursday, April 13, 2023 at 9:32:36 AM UTC-4 Edward K. Ream wrote: [...] *Testing* *test_g_finalize* and *test_g_finalize_join* were responses to Thomas's compatibility concerns. I worked on these two tests for several days before realizing that these tests weren't the whole story!

Re: Creating Qt Apps That Run In A Tab

2023-04-13 Thread Thomas Passin
 AM Thomas Passin wrote: > >> Remind me what you mean by an "info item". Would this be a GitHub issue >> with a "devInfo" or "Info" tag? >> > > Exactly. > > Edward > -- You received this message because you are subscribed to

Re: Example of me using chatGPT

2023-04-13 Thread Thomas Passin
There was a recent thread about this on python-list, including someone's experiments. Here's what I wrote - " People need to remember that ChatGPT-like systems put words together the way that many humans usually do. So what they emit usually sounds smooth and human-like. If it's code they

Re: Eye surgery tommorrow

2023-04-11 Thread Thomas Passin
Good luck! I've had the surgery for both eyes. I'd be surprised if you were out of commission for as long as a day. One thing is that you will probably need reading glasses, and a different strength will work better for computer work vs reading books. I ended up getting cheap drugstore

Pydantic - Type Hints For Validating Data

2023-04-10 Thread Thomas Passin
I just learned of the Pydantic project. It uses Python's type hints to validate structured data at the point of use. It sounds interesting. "Data validation and settings management using Python type annotations. *pydantic* enforces type hints at runtime, and

Re: Leo 6.7.3 coming soon

2023-04-10 Thread Thomas Passin
On Monday, April 10, 2023 at 8:04:23 AM UTC-4 Edward K. Ream wrote: The fix appears to be straightforward, but it points out the folly of rushing to release major changes. +10! -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe

Re: VR3 can now be opened in a tab

2023-04-09 Thread Thomas Passin
Yes: log = c.frame.log g.es(log.orderedTabNames()) BTW, here's how I found this. I certainly didn't remember, and you may have a better way. Start with the script for your button. It calls a method log.deleteTab. In Leo's core code, similar methods are generally grouped together under the

Re: Creating Qt Apps That Run In A Tab

2023-04-09 Thread Thomas Passin
Remind me what you mean by an "info item". Would this be a GitHub issue with a "devInfo" or "Info" tag? On Sunday, April 9, 2023 at 5:17:47 AM UTC-4 Edward K. Ream wrote: > On Sat, Apr 8, 2023 at 11:31 PM Thomas Passin wrote: > >> Many Qt programs

Re: Discuss: what should path expressions contain?

2023-04-08 Thread Thomas Passin
: > On Sat, Apr 8, 2023 at 1:50 PM Thomas Passin wrote: > > 1. I don't see any need to use the expression "{{~}}". Just using "~" >> works now. >> > > Thomas, you have just opened my eyes. Python should do all the work! > > - os.path.expandva

Re: Discuss: what should path expressions contain?

2023-04-08 Thread Thomas Passin
On Saturday, April 8, 2023 at 2:50:01 PM UTC-4 Thomas Passin wrote: Then I could write, for example: @file {{leoDir}}/plugins/new_plugin.py @file ~/.leo/themes/tbp_new_theme.leo # or {{homeLeoDir}}/themes/ tbp_new_theme.leo Well, I wouldn't be having a Leo outline in an @file node, I suppose

Re: Discuss: what should path expressions contain?

2023-04-08 Thread Thomas Passin
The current PR says this: '!' sets the directory to g.app.loadDir. '~' sets the directory to os.path.expanduser('~') '*' sets the directory to os.environ['LEO_BASE_DIRECTORY'] or os.path.expanduser('~') if the environment variable does not exist. 1. I don't see

Re: Discuss: what should path expressions contain?

2023-04-08 Thread Thomas Passin
"*" is so widely used as a wildcard for any string that it would be confusing to use it in another way. On Saturday, April 8, 2023 at 2:13:41 PM UTC-4 Edward K. Ream wrote: On Saturday, April 8, 2023 at 10:49:03 AM UTC-5 jkn wrote: - I really hope you don't choose '*' for such a feature.

Re: VR3 can now be opened in a tab

2023-04-08 Thread Thomas Passin
I've been thinking they could be given a close box. I've not looked in to what it would take, though. On Saturday, April 8, 2023 at 10:44:09 AM UTC-4 jkn wrote: > I meant at the user level - right-click on a tab or similar... I > occasionally have tabs 'outstay their welcome' (as in, I don't

Re: Discuss: what should path expressions contain?

2023-04-08 Thread Thomas Passin
handling will go away. Maybe it can be enabled by a setting that initially will have the value True but in later releases defaults to False: @bool use-old-path-expressions = False On Saturday, April 8, 2023 at 10:20:58 AM UTC-4 Edward K. Ream wrote: > On Sat, Apr 8, 2023 at 8:01 AM Thomas Pas

Re: VR3 can now be opened in a tab

2023-04-08 Thread Thomas Passin
Yes, as long as you know its name, which you do from its label: log.deleteTab(TABNAME) On Saturday, April 8, 2023 at 10:26:30 AM UTC-4 jkn wrote: > This look interesting, thanks. > > One thing I have never really needed, but occasionally wondered about; it > is possible to *delete* a tab

Re: Discuss: what should path expressions contain?

2023-04-08 Thread Thomas Passin
Leo already handles "~", so we don't need "{{~}}". When I say "handles", I mean it adjusts between Windows and Linux. We don't need {{sep}} if the handling code makes the adjustment for "/" vs "\" automatically. This would be highly desirable anyway because sometimes the best way to get the

Re: Discuss: remove support for Leo's path expressions

2023-04-07 Thread Thomas Passin
I was thinking the same. After all, leointeg or leojs could parse headlines and do something with the results. What might make sense - both for security and for both Leo and leojs - would be to write a small number of methods that would be the only ones that could be used in path

Re: Discuss: remove support for Leo's path expressions

2023-04-07 Thread Thomas Passin
I'm a little conflicted about this suggestion. I haven't used path expressions much, but I did experiment with using them to work on both Linux and Windows, where the difference was more than just the meaning of "~". By "work", I mean that the same outline could be moved between Linux and

VR3 can now be opened in a tab

2023-04-07 Thread Thomas Passin
The VR3 plugin can now optionally open in a tab in the log pane instead of in its own panel in the main Leo window (also referred to as a pane in the splitter). I have attached a screen shot that shows the panel layout that I like when using VR3 in a tab. There are two new commands to control

Re: How To Install Leo Dependencies From a Git Clone

2023-04-07 Thread Thomas Passin
Keeping it up to date would be the question. On Friday, April 7, 2023 at 5:14:35 AM UTC-4 Edward K. Ream wrote: > On Thu, Apr 6, 2023 at 11:45 PM Thomas Passin wrote: > >> I just installed Python 3.11.3. I of course wanted to install Leo right >> away. I normally run

How To Install Leo Dependencies From a Git Clone

2023-04-06 Thread Thomas Passin
I just installed Python 3.11.3. I of course wanted to install Leo right away. I normally run Leo from my clone. With an ordinary requirements.txt file one can install the requirements using pip -r requirements.txt. But Leo uses a tricky requirements.txt file that delegates everything to the

Re: Paste image from clipboard.

2023-04-06 Thread Thomas Passin
No, Leo nodes cannot display images per se. What you can do is to use markdown or ReStructuredText and use their syntax to show images. The image file would need to be in a location in the files system like any other image file. You can view the rendered node with its images, math symbols,

Re: Qt 6.5 LTS Released

2023-04-05 Thread Thomas Passin
" MIT License Compatibility The MIT License is highly compatible with other permissive licenses. Including the BSD family of licenses. It is generally compatible with GNU GPL group of licenses. However if you distribute the code that contains or is derivative of GNU GPL code the final project

Re: OT? Beware of ChatGPT

2023-04-03 Thread Thomas Passin
pretty good job, but it's hard to predict when it's going to fail. On Thursday, March 30, 2023 at 12:09:02 PM UTC-4 Thomas Passin wrote: > Here's a really good book covering the basics of neural nets, fuzzy logic, > and the relationship between them. It's rather old so it predates GPT a

Re: New Leo "Package" File Format?

2023-04-02 Thread Thomas Passin
Now this is interesting! I wasn't considering huge image files, most just "ordinary" ones like photos, screenshots, or graphs that would be common images to want to include with, for example, a markdown document. I'll read up on your links. Thanks! On Sunday, April 2, 2023 at 5:18:24 PM

Re: New Leo "Package" File Format?

2023-04-02 Thread Thomas Passin
That's good to know. It seems to me that the main challenge would be for Leo to know just what to have in the package. External files would be easy, but for example image files - how to know about them could be a real challenge. I'm thinking that an outline could contain an @resources node,

Can Leointeg Achieve Near Parity With Leo?

2023-04-02 Thread Thomas Passin
I've need thinking about leointeg and how I've been using Leo. This has generated some thought and questions, so I thought I'd air them here. Felix has done magnificent work with creating leointeg, no doubt about it, and I hope he will post some of his thinking here. One topic is about

Re: How can I keep md-content in Leo instead of importing it?

2023-04-02 Thread Thomas Passin
I use ReST more than MD, but they should work the in a similar way. For Leo trees that are intended to be used by Sphinx, I just make the headline of the top node start with @rst. Otherwise I just put @language rest in the body of the top node of the tree. The rst3 command creates a ReST

Re: OT? Beware of ChatGPT

2023-03-30 Thread Thomas Passin
not about programming at all. Neural Networks and Fuzzy Systems: A Dynamical Systems Approach to Machine Intelligence Bart Kosko I wish I knew where my own copy of it is. I think it may be buried in a box in a storage locker. On Thursday, March 30, 2023 at 11:37:34 AM UTC-4 Thomas Passin wrote

Re: OT? Beware of ChatGPT

2023-03-30 Thread Thomas Passin
I'm a little ambivalent. I'd certainly like to play around with the stuff, and apparently the code in this post is set up to use actual GPT trained coefficients. But what I'm most interested just now is training with other specialized data sets, except that the ones I want don't exist, or I

Re: OT? Beware of ChatGPT

2023-03-29 Thread Thomas Passin
GPT in 60 lines of Python - GPT in 60 lines <https://jaykmody.com/blog/gpt-from-scratch/#what-is-a-gpt?> On Tuesday, January 31, 2023 at 10:17:26 AM UTC-5 Thomas Passin wrote: > Here is an interesting link that among other things shows how ChatGPT has > major weaknesses in m

New Leo "Package" File Format?

2023-03-29 Thread Thomas Passin
There is a perennial problem when one wants to give a Leo outline to someone else. It happens when an outline contains external files, or images to display, or any other data files that might be needed. For example, an article written with the Viewrendered3 plugin in mind, or for a Sphinx

Re: Images In Leo Nodes?

2023-03-29 Thread Thomas Passin
 AM UTC-4 Edward K. Ream wrote: > On Tue, Mar 28, 2023 at 5:04 PM Thomas Passin wrote: > > It would be very useful if an image could be embedded into a Leo body. >> Probably no one would want to do this in a program or script, but for >> documentation it

Re: New undo methods for multiple headline changes on branch 'boltex/issue3219'

2023-03-28 Thread Thomas Passin
Without a PR, it's hard to review the code without knowing what has been changed. On Tuesday, March 28, 2023 at 10:46:42 PM UTC-4 Félix wrote: > If you'd like to test out some new proposed methods to undo/redo commands > that alter many headlines at once: >

Re: Images In Leo Nodes?

2023-03-28 Thread Thomas Passin
On Tuesday, March 28, 2023 at 8:59:01 PM UTC-4 gates...@gmail.com wrote: Not what you’re really looking for, but Leo already supports @svg nodes. Of course, those are just the image in a node, viewable in VR — no text around them in the same node, to my knowledge. Right, and VR3 has even

Images In Leo Nodes?

2023-03-28 Thread Thomas Passin
It would be very useful if an image could be embedded into a Leo body. Probably no one would want to do this in a program or script, but for documentation it could be very helpful. You can put an image into a ReST, MD, or Asciidoc node and view it with VR3 or by creating Sphinx output. But

Re: Script To Automatically Change The Body Font Based On Node's @Language

2023-03-28 Thread Thomas Passin
Here's a script to reverse the effects of the change body script. On Tuesday, March 28, 2023 at 12:01:18 PM UTC-4 Edward K. Ream wrote: > On Tue, Mar 28, 2023 at 9:56 AM Thomas Passin wrote: > >> It would be easy to have a companion script that eliminates the >> font

Re: Script To Automatically Change The Body Font Based On Node's @Language

2023-03-28 Thread Thomas Passin
It would be easy to have a companion script that eliminates the font-changing behavior. If people say they want it, I'll work one up and post it. On Tuesday, March 28, 2023 at 10:45:14 AM UTC-4 Thomas Passin wrote: Nearly all Leo themes use a monospaced typeface for the body font

Script To Automatically Change The Body Font Based On Node's @Language

2023-03-28 Thread Thomas Passin
Nearly all Leo themes use a monospaced typeface for the body font. This is what you want for programming, but for documentation and other non-code writing, many people would prefer a non-monospaced font. Some might event wish for a serif style typeface. The attached script installs a global

Re: ENB: About headline numbers

2023-03-28 Thread Thomas Passin
On Tuesday, March 28, 2023 at 9:08:01 AM UTC-4 Edward K. Ream wrote: PR #3227 contains a draft implementation of issue #3121 : headline numbers. While working on this PR, several

Re: PR #3224: mod_autosave is ready for review

2023-03-28 Thread Thomas Passin
When verbose mode is on, then when autosave happens the Log pane switches to the Log tab to write the message. This can be really annoying if you are working in another tab at the time. Another reason for the verbose mode setting. On Monday, March 27, 2023 at 8:10:02 PM UTC-4 Edward K. Ream

Re: New Way To Expand/Contract Leo Trees

2023-03-27 Thread Thomas Passin
I did forget to uncomment the line, but I *thought* I had caught that with a later PR. Sorry! On Monday, March 27, 2023 at 4:40:47 AM UTC-4 Edward K. Ream wrote: On Mon, Mar 27, 2023 at 2:00 AM lewis wrote: I added *@bool **use-mouse-expand-gestures** - True* to myLeoSetttings.leo but the

Re: New Way To Expand/Contract Leo Trees

2023-03-26 Thread Thomas Passin
I agree that making Leo do autosave smoothly every few seconds or at least often could be hard. I certainly wouldn't want it to freeze for a short (or sometimes longer) time while it saved. OTOH, I'm never sure I really want autosave. I've had plenty of times where I don't save on purpose

Re: New Way To Expand/Contract Leo Trees

2023-03-26 Thread Thomas Passin
On Sunday, March 26, 2023 at 10:53:47 AM UTC-4 Edward K. Ream wrote: On Sun, Mar 26, 2023 at 9:43 AM Thomas Passin wrote: I just now got repeated crashes when trying to do a particular operation - it started happening every time. My script goes out to the internet and tries to download

Re: New Way To Expand/Contract Leo Trees

2023-03-26 Thread Thomas Passin
Mar 26, 2023 at 8:06 AM Thomas Passin wrote: > >> I think it's a crash from Qt, but not from this new UI code. > > > Imo the new UI code isn't off the hook yet. Qt should never crash, but > Leo's tree drawing code has crashed Qt many times in the past. > > Edward >

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

2023-03-26 Thread Thomas Passin
On Sunday, March 26, 2023 at 10:21:21 AM UTC-4 al...@laerios.com wrote: > @paolomi thinks it should not be in ~/ so as to reduce clutter in the > user's home directory. On 26.3.2023 07:25, Edward K. Ream wrote: > - The home directory is a natural place for this data. > - The home directory

Re: Devel reverts recent UI work

2023-03-26 Thread Thomas Passin
I don't think it's the new code, as I said on the other thread. I think there are some Qt problems in general, but I don't think they are from this. I've submitted a new PR that has a setting that needs to be set to True to enable the new behavior. The code did require something new, and I

Re: New Way To Expand/Contract Leo Trees

2023-03-26 Thread Thomas Passin
I think it's a crash from Qt, but not from this new UI code. That's because I have been getting hard crashes for weeks at least. I did not used to get them, so I'm thinking it's something about a particular version of Qt, or a Windows update (In fact, I had an update recently). I think it's

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

2023-03-26 Thread Thomas Passin
On Sunday, March 26, 2023 at 6:25:34 AM UTC-4 Edward K. Ream wrote: On Sat, Mar 25, 2023 at 8:36 PM Thomas Passin wrote: @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

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

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

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

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',

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

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

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

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

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

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 >

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

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

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

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

Re: Thumb-nail Explanation Of Leo

2023-02-27 Thread Thomas Passin
sible 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: > >> Th

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 color the

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 organization, nodes

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

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,

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

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: 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* >

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,

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

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

<    1   2   3   4   5   6   7   8   9   10   >