Re: Question(s)

2023-10-25 Thread Thomas Passin via Python-list
On 10/25/2023 9:20 AM, Michael F. Stemper via Python-list wrote: On 24/10/2023 17.50, Thomas Passin wrote:    The programming team for the Apollo moon mission developed a system which,> if you would write your requirements in a certain way, could generate correct C code for them. Si

Re: Question(s)

2023-10-25 Thread Thomas Passin via Python-list
On 10/25/2023 8:50 AM, o1bigtenor via Python-list wrote: On Wed, Oct 25, 2023 at 7:00 AM Dieter Maurer wrote: o1bigtenor wrote at 2023-10-25 06:44 -0500: On Wed, Oct 25, 2023 at 6:24?AM Dieter Maurer wrote: ... There are different kinds of errors. Some can be avoided by using an

Re: Question(s)

2023-10-25 Thread Thomas Passin via Python-list
On 10/25/2023 9:21 AM, Thomas Passin wrote: On 10/25/2023 8:50 AM, o1bigtenor via Python-list wrote: On Wed, Oct 25, 2023 at 7:00 AM Dieter Maurer wrote: o1bigtenor wrote at 2023-10-25 06:44 -0500: On Wed, Oct 25, 2023 at 6:24?AM Dieter Maurer wrote: ... There are different kinds

New Python Linter/Formatter Written In Rust

2023-10-25 Thread Thomas Passin
Possibly of interest for Leo to replace pylint, etc - The Ruff Formatter -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this

Re: Question(s)

2023-10-24 Thread Thomas Passin via Python-list
On 10/24/2023 7:37 PM, Grant Edwards via Python-list wrote: On 2023-10-24, Thomas Passin via Python-list wrote: Something less ambitious than a full proof of correctness of an arbitrary program can sometimes be achieved. The programming team for the Apollo moon mission developed a system

Re: Question(s)

2023-10-24 Thread Thomas Passin via Python-list
On 10/24/2023 7:15 PM, o1bigtenor wrote: On Tue, Oct 24, 2023 at 6:09 PM Thomas Passin via Python-list wrote: snip By now you have read many responses that basically say that you cannot prove that a given program has no errors, even apart from the hardware question. Even if it could

Re: Question(s)

2023-10-24 Thread Thomas Passin via Python-list
On 10/24/2023 8:22 AM, o1bigtenor via Python-list wrote: Greetings (Sorry for a nebulous subject but dunno how to have a short title for a complex question.) I have been using computers for a long time but am only beginning my foray into the galaxy of programming. Have done little to this

Use python -m pip instead of plain pip

2023-10-23 Thread Thomas Passin
In many places, I (and others) keep saying you should invoke *pip* using python -m pip instead of plain pip Here is a page that goes into it in more detail. It also turns out that *python -m pip* is needed to update pip itself, which I didn't know. Why you should use python -m pip

Re: Running a subprocess in a venv

2023-10-21 Thread Thomas Passin via Python-list
On 10/21/2023 11:32 AM, Larry Martell via Python-list wrote: On Sat, Oct 21, 2023 at 9:49 AM Johannes Findeisen wrote: On Sat, 21 Oct 2023 09:01:18 -0400 Larry Martell via Python-list wrote: I have a python script, and from that I want to run another script in a subprocess in a venv. What

Re: Where I do ask for a new feature

2023-10-20 Thread Thomas Passin via Python-list
On 10/19/2023 11:16 PM, Bongo Ferno via Python-list wrote: On Thursday, October 19, 2023 at 11:26:52 PM UTC-3, avi.e...@gmail.com wrote: There are many ways to make transient variables that disappear at some time and do we need yet another? Yes, you can create one of those ways but what is the

Re: Leo 6.7.5 Status report

2023-10-17 Thread Thomas Passin
Using cached leo-6.6.2-2.tar.gz (13.9 MB) Installing build dependencies ... canceled ERROR: Operation cancelled by user On Tuesday, October 17, 2023 at 7:39:27 AM UTC-4 Thomas Passin wrote: > I'll try it out. > > On Tuesday, October 17, 2023 at 4:57:41 AM UTC-4 Edward K. Ream wrote: > &

Re: Leo 6.7.5 Status report

2023-10-17 Thread Thomas Passin
I'll try it out. On Tuesday, October 17, 2023 at 4:57:41 AM UTC-4 Edward K. Ream wrote: > On Mon, Oct 16, 2023 at 5:29 PM Thomas Passin wrote: > > Do you have an approach to let Leo pip-install under Python 3.12? It >> would be good to have that accomplished by 6.7.6, if not so

Re: Leo 6.7.5 Status report

2023-10-16 Thread Thomas Passin
Do you have an approach to let Leo pip-install under Python 3.12? It would be good to have that accomplished by 6.7.6, if not sooner. On Monday, October 16, 2023 at 5:27:02 PM UTC-4 Edward K. Ream wrote: > On Saturday, October 7, 2023 at 7:11:44 AM UTC-5 Edward K. Ream wrote: > > > I'm going

Re: Quick steps on how I got Leo working on Windows 11

2023-10-16 Thread Thomas Passin
On Monday, October 16, 2023 at 12:33:24 AM UTC-4 map...@gmail.com wrote: Installing Leo from Pypi on Py v3.12 will not work until next Leo release (see https://github.com/leo-editor/leo-editor/pull/3612 and https://github.com/leo-editor/leo-editor/issues/3615) That's because of the

Re: Leo Install Failure On Windows/Python 3.12

2023-10-16 Thread Thomas Passin
to work normally. (I normally run Leo from my clone directory, not the PyPi verson). Of course, you have to manually install any dependencies that didn't get installed when the pip install failed. On Friday, October 13, 2023 at 2:09:46 PM UTC-4 Thomas Passin wrote: > Note that after I manua

Re: Quick steps on how I got Leo working on Windows 11

2023-10-15 Thread Thomas Passin
sudo setx /M PIPX_BIN_DIR C:\bin Where did we get *sudo* from? Does it come with *winget*? Did this work for Leo with Python 3.12? Because something seems to be mis-configured with what's on PyPi right now, and it doesn't work. On Monday, October 16, 2023 at 12:17:14 AM UTC-4

Re: Quick steps on how I got Leo working on Windows 11

2023-10-14 Thread Thomas Passin
I'd say this is how to get it installed using Anaconda, which apparently is not the same as using Python from python.org. For one thing, using python.org you don't have to install build tools to build pyqt5 (and note that Leo will also work with pyqt6) - pip installs a pre-built package. On

Re: Problem running Leo after installing Python 3.12

2023-10-14 Thread Thomas Passin
My system is running Python 3.12 with PyQt 6.5.2: C:\Users\tom>py -m pip list |find /i "pyqt6" PyQt6 6.5.2 PyQt6-Qt6 6.5.2 PyQt6-sip 13.5.2 PyQt6-WebEngine 6.5.0 PyQt6-WebEngine-Qt6 6.5.2 I had to install it by hand, and the pip install of Leo failed, but

Re: Leo Install Failure On Windows/Python 3.12

2023-10-13 Thread Thomas Passin
Note that after I manually installed pyqt6 and PyQt6-WebEngine, then I was able to run Leo from my Git clone. I don't know yet what functionality might not work. But there was no install by pip into site-packages . On Friday, October 13, 2023 at 2:00:20 PM UTC-4 Thomas Passin wrote: > Hav

Leo Install Failure On Windows/Python 3.12

2023-10-13 Thread Thomas Passin
Having just installed Python3.12 on Windows, I went to install Leo using pip. I got a bog fail with a very long error message, below (I haven't done any diagnosis yet): C:\Tom\git\gf4-project>py -m pip install --user leo Collecting leo Obtaining dependency information for leo from

Re: Problem running Leo after installing Python 3.12

2023-10-12 Thread Thomas Passin
I've not been in a hurry to move to Python 3.12. It's only been out a short while, I don't know how many of the dependencies work yet with 3.12, and so why shouldn't I wait for a while and let everything mature longer? On Thursday, October 12, 2023 at 12:38:01 PM UTC-4 jkn wrote: > > Yes,

Re: Are the 'eval' commands working? or is it just me?

2023-10-09 Thread Thomas Passin
The *valuespace* plugin does something like this, but I found it confusing to use. On Monday, October 9, 2023 at 9:11:37 AM UTC-4 Edward K. Ream wrote: > > > On Mon, Oct 9, 2023 at 7:34 AM Thomas Passin wrote: > > I was not aware of [Leo's eval commands] before Felix pos

Re: Are the 'eval' commands working? or is it just me?

2023-10-09 Thread Thomas Passin
On Monday, October 9, 2023 at 7:26:13 AM UTC-4 Edward K. Ream wrote: ... execute-script will suffice for any conceivable purpose. Your troubles indicate that nobody is using the eval commands. I was not aware of them before Felix posted this thread, for what that's worth. I wrote a script

Re: Moving beyond Leo

2023-10-01 Thread Thomas Passin
Agreed, Lilypond is very good. It takes a lot of learning, though. On Sunday, October 1, 2023 at 8:57:25 AM UTC-4 Edward K. Ream wrote: > On Sun, Oct 1, 2023 at 7:44 AM Thomas Passin wrote: > >> >> On Sunday, October 1, 2023 at 8:07:05 AM UTC-4 Edward K. Ream wrote: >>

Re: Moving beyond Leo

2023-10-01 Thread Thomas Passin
On Sunday, October 1, 2023 at 8:07:05 AM UTC-4 Edward K. Ream wrote: Last week, I started playing with LaTeX for what is known as music engraving . Music engraving ... if you want a challenge, well, all right

Re: upgrade of pip on my python 2.7 version

2023-09-28 Thread Thomas Passin via Python-list
On 9/28/2023 9:23 AM, Zuri Shaddai Kuchipudi via Python-list wrote: On Wednesday, 27 September 2023 at 23:33:02 UTC+2, Chris Angelico wrote: On Thu, 28 Sept 2023 at 07:27, Mats Wichmann via Python-list wrote: Upgrading to Python 3 is the best answer... except when it isn't. If you want to

Re: path to python in venv

2023-09-27 Thread Thomas Passin via Python-list
On 9/27/2023 2:53 PM, Larry Martell via Python-list wrote: I was under the impression that in a venv the python used would be in the venv's bin dir. But in my venvs I see this in the bin dirs: lrwxrwxrwx 1 larrymartell larrymartell7 Sep 27 11:21 python -> python3 lrwxrwxrwx 1 larrymartell

Re: upgrade of pip on my python 2.7 version

2023-09-27 Thread Thomas Passin via Python-list
On 9/27/2023 7:17 AM, Zuri Shaddai Kuchipudi via Python-list wrote: hello everyone this the error that im getting while trying to install and upgrade pip on what is the solution for it? C:\repository\pst-utils-pc-davinci-simulator>pip install You are using pip version 7.0.1, however version

Re: Using generator expressions

2023-09-25 Thread Thomas Passin via Python-list
On 9/25/2023 10:15 AM, Jonathan Gossage via Python-list wrote: I am having a problem using generator expressions to supply the arguments for a class instance initialization. The following example shows the problem: class test1(object): def __init__(self, a, b): self.name = a

Re: PEP668 / pipx and "--editable" installs

2023-09-18 Thread Thomas Passin via Python-list
On 9/18/2023 2:56 PM, c.buhtz--- via Python-list wrote: On 2023-09-18 10:16 "Peter J. Holzer via Python-list" wrote: On 2023-09-15 14:15:23 +, c.buhtz--- via Python-list wrote: I tried to install it via "pipx install -e .[develop]". It's pyproject.toml has a bug: A missing dependency

Re: PEP668 / pipx and "--editable" installs

2023-09-17 Thread Thomas Passin via Python-list
On 9/16/2023 7:57 PM, Rimu Atkinson via Python-list wrote: It is nothing bad about using virtual environments but also not about not using them. In my own work I haven't see a use case where I needed them. And I expect that some day I'll encounter a use case for it. This here is not about pro

Re: Postgresql equivalent of Python's timeit?

2023-09-17 Thread Thomas Passin via Python-list
On 9/17/2023 5:01 AM, Albert-Jan Roskam via Python-list wrote: On Sep 15, 2023 19:45, "Peter J. Holzer via Python-list" wrote: On 2023-09-15 17:42:06 +0200, Albert-Jan Roskam via Python-list wrote: >    This is more related to Postgresql than to Python, I hope this is

Re: Postgresql equivalent of Python's timeit?

2023-09-17 Thread Thomas Passin via Python-list
On 9/17/2023 11:48 AM, AVI GROSS via Python-list wrote: Timing things that are fairly simple is hard enough to do repeatedly, but when it involves access to slower media and especially to network connections to servers, the number of things that can change are enormous. There are all kinds of

Re: Python 3.11.5 Pip Issue

2023-09-14 Thread Thomas Passin via Python-list
On 9/13/2023 11:39 PM, Jacob Keeler via Python-list wrote: I downloaded Python 3.11.5, and there was nothing in the “Scripts” file, and there was no Pip. I would like to know why. I just downloaded the 3.11.5 64-bit installer for Windows from python.org and ran it. This was an upgrade since

Re: Python 3.11.5 Pip Issue

2023-09-14 Thread Thomas Passin via Python-list
On 9/13/2023 11:39 PM, Jacob Keeler via Python-list wrote: I downloaded Python 3.11.5, and there was nothing in the “Scripts” file, and there was no Pip. I would like to know why. What do you mean by "downloaded"? And are you talking about Windows? Did you download the installer from

Re: Discuss: remove ctext importer and writer?

2023-09-13 Thread Thomas Passin
Whatever it is, it could be apparently replaced by Markdown, which also uses ## signs to denote header levels. On Wednesday, September 13, 2023 at 2:11:26 PM UTC-4 Edward K. Ream wrote: > On Wed, Sep 13, 2023 at 12:09 PM Thomas Passin wrote: > > > There's a "ctext" relat

Re: Discuss: remove ctext importer and writer?

2023-09-13 Thread Thomas Passin
There's a "ctext" related to the Chinese Text Project, but it's nothing to do with this one. On Wednesday, September 13, 2023 at 12:38:13 PM UTC-4 Edward K. Ream wrote: > On Wed, Sep 13, 2023 at 11:29 AM jkn wrote: > >> I think I only know about it through reading through the importer for >>

Re: Creating LEO outline from python program outside of LEO

2023-09-10 Thread Thomas Passin
import leoBridge bridge = leoBridge.controller(gui='nullGui',verbose=False) if bridge.isOpen(): g = bridge.globals() c = bridge.openLeoFile(path) On Sunday, September 10, 2023 at 12:53:58 PM UTC-4 Thomas Passin wrote: > You should be able to instantiate Leo with a null

Re: Creating LEO outline from python program outside of LEO

2023-09-10 Thread Thomas Passin
You should be able to instantiate Leo with a null gui, and use its variables, like g. That's what the LeoBridge does. This would construct all the data structures that Leo needs to create outlines and import files. (Disclaimer - I've not done this myself). On Sunday, September 10, 2023 at

LLMs as Collaborators

2023-09-07 Thread Thomas Passin
Another in Jon Udell's series of LLM.Chat experiements - Learning While Coding: How LLMs Teach You Implicitly -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To

Re: Creating LEO outline from python program outside of LEO

2023-09-07 Thread Thomas Passin
If your notes are not too complicated, here's something you could do. 1. Open a Leo file with at least one of your note subtrees. Select the top node of a note. 2. Copy the node to the clipboard (*Outline/Copy Node*). 3. Open an ordinary text editor and paste the clipboard into it. If you save

Re: Creating LEO outline from python program outside of LEO

2023-09-07 Thread Thomas Passin
Could you say more about what you want to accomplish? Maybe there is another way to go about it. Do you really need to open Leo programmatically from another program? For example, you could write some (non-Leo) file with your program, launch Leo (from your program) with that file on the

Re: Quick Survey: When running script in leojs, where should the 'vscode' object be accessible?

2023-09-03 Thread Thomas Passin
That's very nice! What is the scope of variable defined in a script like this? For example, you wrote const userInput = await vscode where I would have expected let userInput = If the script were to be run again, then *userInput* might want to take on a different value which would

Re: When scripting with Leo, how to call a command by name?

2023-09-03 Thread Thomas Passin
I've never encountered or used that method. But it's another case where I would resist changing the signature of an existing command. If it's only a matter of making and argument optional, that would be more palatable. The "events" in question here are not Python things but Leo objects.

Re: When scripting with Leo, how to call a command by name?

2023-09-03 Thread Thomas Passin
There's also c.k.simulateCommand('name-of-command'). I'm not sure why there are both, since they seem to do the same thing. With either one, you don't need to supply a fake event. The method takes care of that. I use whichever one I remember first. On Sunday, September 3, 2023 at 9:08:31 PM

Re: Passing info to function used in re.sub

2023-09-03 Thread Thomas Passin via Python-list
On 9/3/2023 12:10 PM, Jan Erik Moström via Python-list wrote: I'm looking for some advice for how to write this in a clean way I want to replace some text using a regex-pattern, but before creating replacement text I need to some file checking/copying etc. My code right now look something

Re: iterations destroy reversed() results

2023-09-03 Thread Thomas Passin via Python-list
On 9/1/2023 12:15 PM, Pierre Fortin via Python-list wrote: Hi, reversed() results are fine until iterated over, after which the results are no longer available. This was discovered after using something like this: rev = reversed( sorted( list ) ) sr = sum( 1 for _ in rev ) # rev is now

Re: Quick Survey: When running script in leojs, where should the 'vscode' object be accessible?

2023-09-02 Thread Thomas Passin
Leo's g, c, and p objects all belong to Leo, not Python or PyQt. if the vscode object belongs to the codebase outside of leojs, I think that g.app.vscode would be more appropriate and easier to use as a reminder of who vscode belongs to. On Saturday, September 2, 2023 at 9:49:43 PM UTC-4

Re: Leointeg - A beginner fumbles!

2023-08-30 Thread Thomas Passin
On Wednesday, August 30, 2023 at 10:13:56 AM UTC-4 Israel Hands wrote: I've been trying to get my sons on board for ever but one is a hard core C guy Have you seen Speed Ream's writeup about how his company uses Leo and gets ~30% productivity improvement (C, C++, and assembler)? It's over

Re: Leointeg - A beginner fumbles!

2023-08-30 Thread Thomas Passin
On Wednesday, August 30, 2023 at 7:36:12 AM UTC-4 Israel Hands wrote: Thomas I'm reading your note about modules and paths - I feel I need to understand this better to make headway. The expression to use with the *-m* flag is the same one you would use to import a module. In the

Re: @auto-md: multiple vnodes with gnx

2023-08-29 Thread Thomas Passin
ok into updating VR3 to give indents relative to the root node instead of all having them the same. Should be easy to do. On Monday, August 28, 2023 at 3:58:26 PM UTC-4 Thomas Passin wrote: > On Monday, August 28, 2023 at 4:56:12 AM UTC-4 p.os...@datec.at wrote: > > Yes, that's the

Re: @auto-md: multiple vnodes with gnx

2023-08-28 Thread Thomas Passin
On Monday, August 28, 2023 at 4:56:12 AM UTC-4 p.os...@datec.at wrote: Yes, that's the point. It simply should work as the RST-plugin does. I wrote a small script that does what I think you want, although only for a single @md file at a time. The top-level node must have a headline that

Re: @auto-md: multiple vnodes with gnx

2023-08-27 Thread Thomas Passin
Oh, you mean that the headline indent level should translate into the right number of "###" characters? You are right that an @clean file wouldn't do that. What would be just right is the rst3 command, except adapted for MD instead of RsT. I've been thinking there ought to be such a command.

Re: @auto-md: multiple vnodes with gnx

2023-08-27 Thread Thomas Passin
One possibility is to import an MD file as an @auto-md. This way you will get the sections set up as you expect. Then change it to be an @clean file, then save the outline. After this, the external file will always track what is in your outline (and if you edit the external file with some

Re: Leointeg - A beginner fumbles!

2023-08-23 Thread Thomas Passin
On Wednesday, August 23, 2023 at 9:01:46 PM UTC-4 Félix wrote: Also, i don't know what "-m" does after "py", but since it worked, then perhaps the python command you should put in is "py -m" . This is something that everyone should learn. The -m flag means to run the parameter as a module.

Re: Leointeg - A beginner fumbles!

2023-08-23 Thread Thomas Passin
On Wednesday, August 23, 2023 at 12:32:47 PM UTC-4 Israel Hands wrote: Hi tbp1 - thanks a lot for stopping by with help! Having restarted my machine, I ran the command you suggested and despite throwing up all the errors I listed above the server ran and I can connect from VSCode - hey hey!!

Re: Leointeg - A beginner fumbles!

2023-08-23 Thread Thomas Passin
I tried running leoserver directly and it worked. That is, LeoInteg in VSC was able to connect. I have Leo 6.7.4 installed. Here is the command I used (on Windows): py -m leo.core.leoserver What command did you use to start leoserver.py? On Tuesday, August 22, 2023 at 10:38:28 AM UTC-4

Re: divmod with negative Decimal values

2023-08-22 Thread Thomas Passin via Python-list
On 8/18/2023 5:14 AM, Rob Cliffe via Python-list wrote: divmod(Decimal("-1"), 60) It's not divmod per se, but the modulus operation: from decimal import Decimal D1 = Decimal(-1) D1 % 60 # Decimal(-1) fmod() performs the same way: from math import fmod fmod(-1, 60) # -1.0 From the Python

Re: LeoInteg Log Pane Apps

2023-08-22 Thread Thomas Passin
On Tuesday, August 22, 2023 at 3:43:18 AM UTC-4 iamap...@gmail.com wrote: RPCalc Very interesting, Thomas. I'll try it later :D Btw, I found your gf4-project is also an interesting topic, but I haven't had time to play with

Re: LeoInteg Log Pane Apps

2023-08-21 Thread Thomas Passin
Here's the original announcement: RPCalc <https://groups.google.com/g/leo-editor/c/nXPgvH05ZvM/m/l7XBHl0vAQAJ> On Monday, August 21, 2023 at 10:13:37 PM UTC-4 Thomas Passin wrote: > It's a fairly new plugin I wrote, a reverse polish notation (RPN) > calculator - the type that HP

Re: LeoInteg Log Pane Apps

2023-08-21 Thread Thomas Passin
It's a fairly new plugin I wrote, a reverse polish notation (RPN) calculator - the type that HP made famous. It displays in the log pane. I adapted an existing stand-alone calculator. I add a button to all outlines to launch it. See that attached image. On Monday, August 21, 2023 at 9:00:53 

LeoInteg Log Pane Apps

2023-08-21 Thread Thomas Passin
I have posted here about several apps I've written that display in the log pane, including my browser bookmarks manager, the current version of the Viewrended3 plugin (which can optionally display in the log pane), and the RPCalc plugin. Most of them interact with with Leo's tree. They are

Re: LeoInteg 1.0.14 released

2023-08-21 Thread Thomas Passin
I had the same situation. I found I had to update vsc, then restart vsc. I had automatic updates for extensions enabled, and after the restart, Leointeg's version had been updated to 1.0.14. Félix should probably put a note about this into the install docs. On Monday, August 21, 2023 at

Re: Leo 6.7.4 released

2023-08-17 Thread Thomas Passin
17, 2023 at 5:11 PM Thomas Passin wrote: > > I upgraded my Windows 6.7.3 installation to 6.7.4 using pip: >> >> py -m pip install --user --upgrade leo >> >> It installed correctly but I got this deprecation warning: >> >> C:\Users\tom>py -m pip install

Re: Leo 6.7.4 released

2023-08-17 Thread Thomas Passin
I upgraded my Windows 6.7.3 installation to 6.7.4 using pip: py -m pip install --user --upgrade leo It installed correctly but I got this deprecation warning: C:\Users\tom>py -m pip install --upgrade --user leo DEPRECATION: Loading egg at

Re: Discuss: Remove read-outline-only command?

2023-08-15 Thread Thomas Passin
I suppose this command exists in case something goes wrong with an external file such that Leo can't open the outline. I don't know if that is possible or not. Suppose it's possible. I would open a new outline, and try to import that external file in the hopes that I could figure out the

Re: ENB: Ahas re paste-retaining-clones

2023-08-13 Thread Thomas Passin
Best wishes on your birthday from this quarter, too! On Sunday, August 13, 2023 at 1:13:18 PM UTC-4 Edward K. Ream wrote: On Sunday, August 13, 2023 at 12:00:43 PM UTC-5 David Szent-Györgyi wrote: > Thank you for working on your birthday and giving a gift to us all. -- You received this

Re: Press ⌘ then click node

2023-07-27 Thread Thomas Passin
It also works with two slashes: file://. On Thursday, July 27, 2023 at 6:12:27 AM UTC-4 jkn wrote: > Yes, three slashes works for me as well, and is 'correct' as a URI. > > I am not quite sure why I thought it was four slashes. I think I worked > with some app at one point which needed the

Re: Press ⌘ then click node

2023-07-26 Thread Thomas Passin
Not just the first line - any line with a recognizable URL should show that URL to be highlighted, and a CTRL-Click (or the Apple equivalent) on the highlighted URL will navigate you to it in the browser. CTRL-Clicking can navigate you to: - A URL, as above; - a node within a Leo outline (by

Interesting Post on The Old New Thing - Do Nothing At First

2023-07-25 Thread Thomas Passin
Before you try to do something, make sure you can do nothing -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it,

Re: Leo 6.7.4: status report

2023-07-24 Thread Thomas Passin
On Monday, July 24, 2023 at 2:08:34 PM UTC-4 Edward K. Ream wrote: The PR will complete #3452 , a paste-based undo scheme. I'll write a new unit test for the new code. *Note*: the two new unit tests perform three cycles of undo/redo, so

Re: Search for node by GNX with g.findGnx

2023-07-20 Thread Thomas Passin
> >> I didn't word that right. I meant that the string returned by the dialog >> isn't a gnx string that can be found. In my test case, the gnx in the >> clipboard started with "*gnx:*" When I manually removed the "*gnx:*" >> prefix, @Lewis's script r

More on LLM-Assisted Programming

2023-07-19 Thread Thomas Passin
Elevating the Conversation with LLM Assistants -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: Search for node by GNX with g.findGnx

2023-07-18 Thread Thomas Passin
I think that findGnx() should work whether or not the string starts with the "gnx:" prefix. On Tuesday, July 18, 2023 at 4:16:31 PM UTC-4 Edward K. Ream wrote: > On Tue, Jul 18, 2023 at 3:07 PM Thomas Passin wrote: > >> I didn't word that right. I meant that the string

Re: Search for node by GNX with g.findGnx

2023-07-18 Thread Thomas Passin
, 2023 at 3:58:56 PM UTC-4 Thomas Passin wrote: > The problem here is not with findGnx() or es_clickable_link(). The > problem is that g.app.gui.runAskOkCancelStringDialog(c,'SEARCH Node by > GNX',"Enter search GNX: ") is failing to find an existing gnx*.* &g

Re: Search for node by GNX with g.findGnx

2023-07-18 Thread Thomas Passin
The problem here is not with findGnx() or es_clickable_link(). The problem is that g.app.gui.runAskOkCancelStringDialog(c,'SEARCH Node by GNX',"Enter search GNX: ") is failing to find an existing gnx*.* Checking to see if it has returned None or not will prevent a exception, but the failure

Re: Discuss: load-leo.html should refer visitors to vscode.dev

2023-07-16 Thread Thomas Passin
As we have discussed in the PR conversation, I think *leoad-leo.html* needs to go away, one way or another. It's way too feeble even if we got it working again. It wouldn't either give visitors a feel for what Leo can do or even a feel that it is well designed. OTOH, who knows when

Re: ENB: About immutable positions

2023-07-15 Thread Thomas Passin
On Saturday, July 15, 2023 at 5:49:29 PM UTC-4 Edward K. Ream wrote: My initial post in this thread showed how Leo could support Imps (Immutable Positions) without changing Leo's Position or VNode classes. I concluded that Imps were not a good idea :-) Vitalije not-so-subtly implies that

Re: Leo 6.7.4 is code complete. Please test

2023-07-15 Thread Thomas Passin
Are these changes merged into the 6.7.4 branch yet? IOW, should we be trying out devel or 6.7.4 On Saturday, July 15, 2023 at 5:12:14 PM UTC-4 Edward K. Ream wrote: > On Saturday, July 15, 2023 at 7:22:47 AM UTC-5 Edward K. Ream wrote: > > > 6.7.4 is code complete. Please test the devel

Re: About undoing commands, especially tree operations

2023-07-15 Thread Thomas Passin
On Saturday, July 15, 2023 at 8:13:11 AM UTC-4 Edward K. Ream wrote: On Sat, Jul 15, 2023 at 7:02 AM Thomas Passin wrote: >> A new data module must be completely compatible will all existing scripts, plugins and Leo's core. I don't believe such a compatible data model is possible. &g

Re: About undoing commands, especially tree operations

2023-07-15 Thread Thomas Passin
On Saturday, July 15, 2023 at 6:11:59 AM UTC-4 Edward K. Ream wrote: A new data module must be completely compatible will all existing scripts, plugins and Leo's core. I don't believe such a compatible data model is possible. I think this is the key here. Using a completely new data model

Re: About undoing commands, especially tree operations

2023-07-14 Thread Thomas Passin
On Friday, July 14, 2023 at 12:14:03 PM UTC-4 Edward K. Ream wrote: I *understated *the performance advantages of VNodes. Leo forms clones in constant time. In comparison, MORE took O(N**2) time to make clones. MORE could be much worse than 100x slower than Leo. Also, MORE made clones by

Re: Leo 6.7.4 on schedule for Friday, July 14

2023-07-14 Thread Thomas Passin
On Friday, July 14, 2023 at 11:52:58 AM UTC-4 Edward K. Ream wrote: Thanks for your testing :-) Have you had to make any changes to your zettelkasten plugin? I actually have two, the one I use all the time and the one I prepared as a stand-alone outline for other people to use. Same for

Re: Leo 6.7.4 on schedule for Friday, July 14

2023-07-14 Thread Thomas Passin
I've been using the 6.7.4 branch for several days and have not hit any problems so far. Leo 6.7.4-devel, 6.7.4 branch, build a20d3abd77 2023-07-11 09:48:21 -0500 Python 3.11.4, PyQt version 6.4.3 Windows 10 AMD64 (build 10.0.19045) SP0 On Tuesday, July 11, 2023 at 10:12:45 AM UTC-4 Edward K.

Re: About undoing commands, especially tree operations

2023-07-14 Thread Thomas Passin
On Friday, July 14, 2023 at 9:23:50 AM UTC-4 Edward K. Ream wrote: Leo's VNode class is the heart of Leo. It has a long history. It handles clones two orders of magnitude faster than the MORE outliner. All of its complications exist for a purpose. Of course they do. The situation is

Re: About undoing commands, especially tree operations

2023-07-14 Thread Thomas Passin
On Friday, July 14, 2023 at 8:24:17 AM UTC-4 Edward K. Ream wrote: On Fri, Jul 14 vitalije wrote: > I just wished to illustrate how dangerous and tricky things can get when we have mutable state buried so deep down in the foundations of Leo's code. I agree. That's what PR #3438

Re: About undoing commands, especially tree operations

2023-07-14 Thread Thomas Passin
After reading this, I looked at the VNode class definition for the first time. Ouch! I think this must be an example of serious technical debt. No doubt it seemed reasonable or even necessary but as I look at it without knowing the history or even much about how it's used, it's not how I try

Re: Aha: no need for a new paste command

2023-07-08 Thread Thomas Passin
, at least to me. I better write some clarifying text about these commands in the new user guide I'm slowly working on, I suppose. On Saturday, July 8, 2023 at 8:50:14 AM UTC-4 Edward K. Ream wrote: > On Sat, Jul 8, 2023 at 6:53 AM Thomas Passin wrote: > >> No, I haven't tried it

Re: Discuss: remove support (later) for old unls in g.findUnl?

2023-07-08 Thread Thomas Passin
On Saturday, July 8, 2023 at 8:28:09 AM UTC-4 Edward K. Ream wrote: On Sat, Jul 8, 2023 at 6:47 AM Thomas Passin wrote: Using the ekr-tweak-unls branch breaks both the bookmarks and zettel tabbed apps. I will look into what isn't working, but in the zettel browser, I see it's looking

Re: Aha: no need for a new paste command

2023-07-08 Thread Thomas Passin
No, I haven't tried it. I'm not even sure I would want to. Think about how the Windows file explorer works. If you copy a file and paste it, it gives the pasted file a name that includes "copy" if there is another file with that name in the same directory. If there isn't another file in

Re: Discuss: remove support (later) for old unls in g.findUnl?

2023-07-08 Thread Thomas Passin
wrote: > On Fri, Jul 7, 2023 at 9:09 PM Thomas Passin wrote: > >> I've never used g.findUnl() with patterns at all. So as long as the >> newer one picks up legacy-style unls I'd be OK with it. >> > > Hmm. Your plugins might be using g.findUnl indirectly. > >

Re: Discuss: remove support (later) for old unls in g.findUnl?

2023-07-07 Thread Thomas Passin
I've never used g.findUnl() with patterns at all. So as long as the newer one picks up legacy-style unls I'd be OK with it. On Friday, July 7, 2023 at 7:36:26 PM UTC-4 Edward K. Ream wrote: > g.findUnl is the handler for path-based unls. It contains two regex > patterns: > > #

Re: Aha: no need for a new paste command

2023-07-07 Thread Thomas Passin
I got some more clarity about this, and I commented the following on the proposed PR: I can now see that the concept of operation is simple. Within an outline, for a parent-and-subtree: - Ask for a move, get a move; gnxs do not change; - Cut-paste is the same as a move; - Ask for a

Re: Why gnx-based unls are important

2023-07-06 Thread Thomas Passin
I asked about the duplicate somewhere else (can't find it just now). Edward said the extra node wasn't harmful and would be a reminder for him which he would remove later. On Thursday, July 6, 2023 at 8:37:03 PM UTC-4 iamap...@gmail.com wrote: > I noticed myLeoSettings.leo file has node

Re: Heh. I changed a gnx in the big PR by mistake

2023-07-06 Thread Thomas Passin
: ) On Thursday, July 6, 2023 at 1:44:36 PM UTC-4 Edward K. Ream wrote: > On Thu, Jul 6, 2023 at 11:58 AM Thomas Passin wrote: > > Say you (Edward, I imagine) move a subtree that contains Terry's nodes to >> the Attic. If you forget and just do a cut-and-paste, suddenly they

Re: Heh. I changed a gnx in the big PR by mistake

2023-07-06 Thread Thomas Passin
On Thursday, July 6, 2023 at 12:31:55 PM UTC-4 Edward K. Ream wrote: On Thursday, July 6, 2023 at 11:11:51 AM UTC-5 Thomas wrote: Reminding people (including devs) to "be careful" isn't enough. It's not about being careful. It's about not needlessly cutting/pasting nodes. Devs must not

Re: Heh. I changed a gnx in the big PR by mistake

2023-07-06 Thread Thomas Passin
See, it even happens to Edward. Let's make things so that it won't happen to anyone. Reminding people (including devs) to "be careful" isn't enough. On Thursday, July 6, 2023 at 12:04:18 PM UTC-4 Edward K. Ream wrote: > I'm glad we've had the conversation about cut-node/paste-node. It

Re: "Unbreakable UNLs" Can Break Under A Common Scenario

2023-07-06 Thread Thomas Passin
On Thursday, July 6, 2023 at 11:36:41 AM UTC-4 Edward K. Ream wrote: On Thu, Jul 6, 2023 at 9:28 AM jkn wrote: > So, "once you have learned about gnx's, Cut- and paste- nodes is lost to you"? Not at all. Only Leo's *devs *need to take care. To repeat: a Leo dev is someone who changes Leo's

Re: Why gnx-based unls are important

2023-07-06 Thread Thomas Passin
My computer is a Dell Windows-10 laptop. The status bar display seems to be working as intended. On Thursday, July 6, 2023 at 9:57:16 AM UTC-4 lewis wrote: > On laptop build 947ea935f5 works correctly. > However on PC 947ea935f5 does not show gnx-style format. > > Here is log from PC updating

Re: "Unbreakable UNLs" Can Break Under A Common Scenario

2023-07-06 Thread Thomas Passin
Hmm, we have a real disagreement here. I think that cut-paste within an outline should be equivalent to a move. And anyway, some fundamental property like node identity should not have to depend on whether someone happens to remember a subtle point - if they even had learned about it - when

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