Re: Failed installation on Ubuntu 22.04LTS (both git and pip methods)

2023-05-07 Thread Thomas Passin
After my last post, I found the fix for the "xcb" problem with PyQt5. It was in a discussion thread from several years ago, and I haven't verified that it still works (but I suspect it does): sudo apt-get install libxcb-xinerama0 On Sunday, May 7, 2023 at 10:44:46 AM UTC-4 Thom

New Programming Language 'Mojo' - a Python Superset

2023-05-07 Thread Thomas Passin
This looks really interesting when high performance is needed. You can get a (nearly) Python program to use compiled-language constructs and your graphics hardware for very high performance of compute-heavy tasks (the company is an AI-support business so the want really good performance) - Slas

Re: New Programming Language 'Mojo' - a Python Superset

2023-05-07 Thread Thomas Passin
Here's a more technical blog entry: https://docs.modular.com/mojo/why-mojo.html. On Sunday, May 7, 2023 at 12:00:09 PM UTC-4 Thomas Passin wrote: > This looks really interesting when high performance is needed. You can get > a (nearly) Python program to use compiled-language con

New User's Guide To Leo

2023-05-07 Thread Thomas Passin
I've been thinking that there should be a book on Leo. I don't think I've got another book left in me, but I'm not completely happy with the existing docs because I don't think they really match what a new user faces when trying to fire up Leo and use it the first few times. (Also, I don't kn

Re: New User's Guide To Leo

2023-05-08 Thread Thomas Passin
On Monday, May 8, 2023 at 7:29:01 AM UTC-4 Edward K. Ream wrote: The first question most people would have would likely be: "Why should I care about yet another text editor?". That's what I think too. I've tried to address it by starting out with "what can you do with Leo" And trying to make

Re: Aha: How to find patterns in python parse trees

2023-05-08 Thread Thomas Passin
I'm not surprised by this. I found the same thing in developing my bookmarks manager. Conceptually the structure of the bookmarks collection is tree-like, but it can be much easier to flatten that structure into text and use string methods on the flattened structure. OTOH, there has been theo

Re: New Programming Language 'Mojo' - a Python Superset

2023-05-08 Thread Thomas Passin
corate parts of your code to use it. On Monday, May 8, 2023 at 7:21:08 AM UTC-4 Edward K. Ream wrote: > On Sun, May 7, 2023 at 11:08 AM Thomas Passin wrote: > >> Here's a more technical blog entry: >> https://docs.modular.com/mojo/why-mojo.html. > > > Thank

Re: New User's Guide To Leo

2023-05-08 Thread Thomas Passin
Keep checking back in with the link. I'm making frequent changes for the time being. On Monday, May 8, 2023 at 10:02:16 AM UTC-4 Edward K. Ream wrote: > On Mon, May 8, 2023 at 8:26 AM Thomas Passin wrote: > >> On Monday, May 8, 2023 at 7:29:01 AM UTC-4 Edward K. Ream wrote

Re: Aha: How to find patterns in python parse trees

2023-05-09 Thread Thomas Passin
On Tuesday, May 9, 2023 at 7:54:48 AM UTC-4 Edward K. Ream wrote: On Monday, May 8, 2023 at 8:16:08 AM UTC-5 Edward K. Ream wrote: Once the technical problem disappeared it became clear that static checks of Leo's code are not likely to be of great value! There has been many words written abo

Re: New User's Guide To Leo

2023-05-11 Thread Thomas Passin
Thanks! I have only used it for LaTex a few times and it didn't come to mind. How do you create the actual document from the Leo outline? On Thursday, May 11, 2023 at 8:59:48 AM UTC-4 Rob wrote: > Looks good! May I also suggest to add LaTeX to the list of structured > language support. There

Re: New User's Guide To Leo

2023-05-11 Thread Thomas Passin
Texnic Center looks pretty good, at a quick glance. Do you write an @clean TeX document in Leo, then process it into LaTex with Texnic Center? On Thursday, May 11, 2023 at 10:09:07 AM UTC-4 Rob wrote: > I don't use Leo for that. I suppose I could, but I don't know how to > create a suitable sc

Re: New User's Guide To Leo

2023-05-11 Thread Thomas Passin
Thanks... I'll add some material about LaTex. On Thursday, May 11, 2023 at 10:32:29 AM UTC-4 Rob wrote: > I usually use @file w/ @language=tex for the xxx.tex files and Leo handles > the comments appropriately. Works great! > > I also have created several standard templates for typical document

Re: New User's Guide To Leo

2023-05-11 Thread Thomas Passin
l tour of what Leo is capable of is very compelling and a good > showcase to new users about why to use Leo. > > Keep the good work, > > Offray > On 7/05/23 23:56, Thomas Passin wrote: > > I've been thinking that there should be a book on Leo. I don't think I've

Re: New User's Guide To Leo

2023-05-11 Thread Thomas Passin
On Thursday, May 11, 2023 at 3:31:45 PM UTC-4 Paul wrote: Explain CLONING up front: not mind mapping or concept mapping, virtually unige Not as unique as you might think (e.g., TreeLine ). What's probably unique - or at least valuable - is how clones c

Re: New User's Guide To Leo

2023-05-11 Thread Thomas Passin
I think it's not too hard on Windows, but that installer wouldn't work on a Mac. Without actually having a Mac, I don't see how it would be possible. Linux is a whole other kettle of fish. It's only on Linux that I've ever had any trouble. On Windows, getting Leo going hasn't fought back for

Re: New User's Guide To Leo

2023-05-11 Thread Thomas Passin
I've extended the outline quite a bit. Please take a look and let me know your reactions. New User's Guide To Leo <http://tompassin.net/leo/guide/docs/using-leo.html> On Thursday, May 11, 2023 at 11:40:40 PM UTC-4 Thomas Passin wrote: > I think it's not too h

Self Contained Leo Executable

2023-05-11 Thread Thomas Passin
I just tried making a self-contained Leo installer for Windows with PyInstaller. the executable failed with this error: File "leo\core\leoApp.py", line 1853, in reportDirectories g.es(f"{kind:>10}:", os.path.normpath(theDir), color='blue')

When Does CTRL-Clicking On Functions/Methods/Classes Work?

2023-05-12 Thread Thomas Passin
I'm used to CTRL-clicking on function names, etc, to move directly to their defs. I assumed that this would work for basically any programming language. But when I just tried it in a javascript code base, nothing happened for a CTRL-click. Is this capability limited only to Python code? What

Re: When Does CTRL-Clicking On Functions/Methods/Classes Work?

2023-05-12 Thread Thomas Passin
AM UTC-4 Edward K. Ream wrote: > On Fri, May 12, 2023 at 7:44 AM Thomas Passin wrote: > >> I'm used to CTRL-clicking on function names, etc, to move directly to >> their defs. I assumed that this would work for basically any programming >> language. But when I just

Re: Self Contained Leo Executable

2023-05-12 Thread Thomas Passin
leoInteg isn't able to handle some plugins and the in-tab apps I've been writing lately, IIUC. On Friday, May 12, 2023 at 6:34:30 AM UTC-4 Edward K. Ream wrote: > On Thu, May 11, 2023 at 11:45 PM Thomas Passin wrote: > >> I just tried making a self-contained Leo inst

Re: Self Contained Leo Executable

2023-05-12 Thread Thomas Passin
Felix will say more, but LeoInteg, running as an addon in VSCode, talks to Leo via the LeoBridge to ascertain the state of the tree and the contents of Leo's nodes. So it's like a repeater in a way, and you can work with the tree and body in LeoInteg instead of Leo's Qt panes. Leo commands can

Re: Self Contained Leo Executable

2023-05-12 Thread Thomas Passin
But note that LeoInteg still relies on Leo having already been installed, since it must start the LeoBridge and a headless Leo executable. On Friday, May 12, 2023 at 3:46:19 PM UTC-4 Thomas Passin wrote: Felix will say more, but LeoInteg, running as an addon in VSCode, talks to Leo via the

Re: An RPN Calculator For Leo

2023-05-14 Thread Thomas Passin
Cool! Though I'm glad I don't have to debug any of those expressions. On Sunday, May 14, 2023 at 10:52:45 AM UTC-4 jkn wrote: > As a slight aside: I knew about the 'bc' (bench calculator) program in > Linux/Unix, and I also knew there was a 'dc' (desk calculator) in Linux/Unix > > What I didn't

What Was I Working On???

2023-05-16 Thread Thomas Passin
Today I wanted to continue some work I started a few weeks ago. I remember clearly what I did. But I can't remember the outline, and I have not succeeded in finding it even with the help of FileLocatorPro (a terrific Windows program). Somehow, the Recent Files list hasn't helped either. Oth

Re: What Was I Working On???

2023-05-16 Thread Thomas Passin
Here's a bug fix. I didn't update some constant names in the *Stop Logging* script. On Tuesday, May 16, 2023 at 6:31:04 PM UTC-4 Thomas Passin wrote: > Today I wanted to continue some work I started a few weeks ago. I > remember clearly what I did. But I can't rememb

Re: What Was I Working On???

2023-05-17 Thread Thomas Passin
Trying it out got me to thinking that it would be handy to be able to log quick little notes. The following script writes the cursor line on the body to a note log file, whose path can optionally be specified in a setting. The idea is that you could write a brief one-line note and pop it righ

Re: New User's Guide To Leo

2023-05-18 Thread Thomas Passin
No apologies needed. Leo is terrific, but it does have quite a learning curve. In the end, I think many people end up with their own personalized workflows, most likely with some customized scripts to help. I like your suggestions of user scenarios walkthroughs, and I think they don't really

Re: Stack Overflow Traffic Slumps As Devs Turn to ChatGTP

2023-05-18 Thread Thomas Passin
Closer to home, maybe: explain how to create Sphinx documents with the Leo-editor but don't explain what Leo, Sphinx, or ReStructured text are To create Sphinx documents with the Leo editor, follow these steps: 1. Install Sphinx: Use a package manager like pip to install Sphinx on yo

Re: Impressive ChatGPT responses

2023-05-18 Thread Thomas Passin
gt;> >>> An interesting post on the subject, including "alignment": Large >>> language model alignment “bias” and cultural consensus theory >>> <https://statmodeling.stat.columbia.edu/2023/04/26/llm-alignment-bias-cultural-consensus-theory/> >>>

Re: Impressive ChatGPT responses

2023-05-18 Thread Thomas Passin
Remember to refer to the Leo editor's documentation and resources for detailed information on its features and functionalities. Additionally, consult web development resources to learn more about HTML, CSS, and JavaScript to enhance your website's design and functionality. On Thursda

Re: Impressive ChatGPT responses

2023-05-18 Thread Thomas Passin
Hmm, that formatting came out weird. I'll see if I can reformat it better - the above was directly copy-pasted from the browser. In the meantime, here's another interesting one: explain briefly what advantages the leo-editor has over vs-code The Leo editor and Visual Studio Code (VS Code) are

Re: Impressive ChatGPT responses

2023-05-18 Thread Thomas Passin
Rats! I'll try to reformat that one, too. On Thursday, May 18, 2023 at 2:32:57 PM UTC-4 Thomas Passin wrote: > Hmm, that formatting came out weird. I'll see if I can reformat it better > - the above was directly copy-pasted from the browser. In the meantime, > here's

Re: Impressive ChatGPT responses

2023-05-18 Thread Thomas Passin
vast ecosystem of extensions and a strong focus on code editing and development workflows. On the other hand, the Leo editor shines when it comes to outlining, hierarchical editing, and content organization. On Thursday, May 18, 2023 at 2:33:27 PM UTC-4 Thomas Passin wrote: > Rats! I'll tr

Re: Impressive ChatGPT responses

2023-05-18 Thread Thomas Passin
And here is the earlier transcript, reformated - the chatbot's doing a lot of hand-waving! write a short user's guide about how to manage a web site with the leo-editor, and do not explain what the leo-editor or a web site are ChatGPT Sure! Here's a short user's guide on managing a website with

Re: New User's Guide To Leo

2023-05-20 Thread Thomas Passin
On Saturday, May 20, 2023 at 6:10:24 PM UTC-4 Ben Hancock wrote: [snip] Hi Rob, Thanks. I'd be grateful for your tips. It looks like I can probably get a good start on point 2 (creating documents) with the "Creating Documents from Outlines" tutorial[1], but if there are particular things yo

Re: New User's Guide To Leo

2023-05-21 Thread Thomas Passin
I've been plugging away New User's Guide. I've also changed the name of the top-level file to *index.html*. The rest of the URL remains the same: New User's Guide <http://tompassin.net/leo/guide/docs/index.html>. On Saturday, May 20, 2023 at 7:37:29 PM UTC-4 Thom

Re: New User's Guide To Leo

2023-05-21 Thread Thomas Passin
On Thursday, May 18, 2023 at 11:17:52 AM UTC-4 Ben Hancock wrote: Thomas writes: I've been thinking that there should be a book on Leo. I don't think I've got another book left in me, but I'm not completely happy with the existing docs because I don't think they really match what a new user

Re: @auto-ms does not get along with Leo's clones

2023-05-23 Thread Thomas Passin
Maybe @clean or even @file would work for you (not that I've tried them with clones, which I'll try out soon) instead of @auto-md. I don't think that @auto-md really gets you anything that they don't, although you will need to put *@language md* at the start of the body of the top node. On T

Re: @auto-ms does not get along with Leo's clones

2023-05-23 Thread Thomas Passin
corrupted outline, and whether you use an *@others* line in it? And is this the only such file that caused a problem? And also the version of Leo and the OS (though it doesn't seem likely that the OS is playing a part). On Tuesday, May 23, 2023 at 1:58:13 PM UTC-4 Thomas Passin wrote: &g

Re: @auto-ms does not get along with Leo's clones

2023-05-24 Thread Thomas Passin
detail about the *@auto-md* file that ended up with >> a corrupted outline, and whether you use an *@others* line in it? And >> is this the only such file that caused a problem? And also the version of >> Leo and the OS (though it doesn't seem likely that the OS is playing a

Re: @auto-ms does not get along with Leo's clones

2023-05-24 Thread Thomas Passin
mined. I'll experiment some more to try to pin it down. The outline which showed the problem had both an *@auto-md* and an *@clean* tree. I'll try outlines with them separately and report back. On Wednesday, May 24, 2023 at 8:22:58 AM UTC-4 Thomas Passin wrote: > @Edward recently re-

Re: @auto-ms does not get along with Leo's clones

2023-05-24 Thread Thomas Passin
were no longer clones. I don't know what the original intention was with respect to *@auto-md *trees, but this seems like a serious bug to me. I'll create an issue for it. On Wednesday, May 24, 2023 at 10:10:34 AM UTC-4 Thomas Passin wrote: > I see where the problem is - or at leas

Re: @auto-ms does not get along with Leo's clones

2023-05-24 Thread Thomas Passin
The GitHub issue is 3355 <https://github.com/leo-editor/leo-editor/issues/3355>. On Wednesday, May 24, 2023 at 10:40:25 AM UTC-4 Thomas Passin wrote: > The loss of clones is specific to *@auto-md* trees (although I have not > tested other *@auto-xx* trees): > > In an outline

Re: Impressive ChatGPT responses

2023-05-24 Thread Thomas Passin
/24/when-the-rubber-duck-talks-back/>. It's especially interesting that - if you are using VSCode, anyway - the bot can index your entire repo and use that to give much better results. On Thursday, May 18, 2023 at 5:42:27 PM UTC-4 Edward K. Ream wrote: > On Thu, May 18, 2023 at 1:38 PM

Re: @auto-ms does not get along with Leo's clones

2023-05-24 Thread Thomas Passin
this is not the issue the OP has been encountering? On Wednesday, May 24, 2023 at 10:47:19 AM UTC-4 Thomas Passin wrote: > The GitHub issue is 3355 > <https://github.com/leo-editor/leo-editor/issues/3355>. > > On Wednesday, May 24, 2023 at 10:40:25 AM UTC-4 Thomas Passin

Re: @auto-ms does not get along with Leo's clones

2023-06-02 Thread Thomas Passin
y me, but >> automatically somehow. >> >> >> >> On Wednesday, May 24, 2023 at 4:47:19 PM UTC+2 tbp1...@gmail.com wrote: >> >> The GitHub issue is 3355 >> <https://github.com/leo-editor/leo-editor/issues/3355>. >> >> On Wednesday, May

Re: @auto-ms does not get along with Leo's clones

2023-06-02 Thread Thomas Passin
On Friday, June 2, 2023 at 3:05:51 AM UTC-4 p.os...@datec.at wrote: Again it happended. But now it happoend with vanilla nodes, as I replaced all clones by copies of the respective nodes. A section is cut off at ```bash which becomes a node title. This node's body contains then all the sub no

Does the Directive @terse Get Used Anywhere?

2023-06-03 Thread Thomas Passin
The globalDirectiveList includes a directive name of "terse". A search of LeoPyRef doesn't show it being used anywhere. Is it actually used, and if so, for what? -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group an

Re: @auto-ms does not get along with Leo's clones

2023-06-09 Thread Thomas Passin
You might try ```shell too. On Wednesday, June 7, 2023 at 5:58:24 AM UTC-4 p.os...@datec.at wrote: > Hm, for now it seems a wrong ```-clause (markdown) being the reason for > all the hassle: Replaced all ```bash by ```sh. I'll see if this holds for > clones as well (have to intro them again).

Re: Another mass update: PR #3367

2023-06-09 Thread Thomas Passin
Leo loaded using Python 3.11 on Windows. So that's good. On Friday, June 9, 2023 at 2:04:31 PM UTC-4 Edward K. Ream wrote: > PR #3367 imports > Callable from collections.abc instead of typing. typing.Callable is > deprecated, but is not pre

Re: Another mass update: PR #3367

2023-06-10 Thread Thomas Passin
That trystar error shows up on my Windows 3.11 machine too: C:\Tom\git\leo-editor\leo\scripts>test-leo test-leo ..

New Mono-spaced Font From Intel

2023-06-10 Thread Thomas Passin
Intel has open-sourced a new monospaced font family called "IntelOne Mono". It's available via GitHub . They say it was developed to be very readable even for people with visual handicaps or for developers whose eyes get irritated by long hours staring

Re: What Was I Working On???

2023-06-11 Thread Thomas Passin
note to {ACTUALPATH}') This script also lets you optionally set the location of the log file with the @string setting notelog. On Wednesday, May 17, 2023 at 10:35:54 AM UTC-4 Thomas Passin wrote: > Trying it out got me to thinking that it would be handy to be able to log > quick lit

Mint/XFCE Update May Cause Viewrendered3 Plugin to Crash Leo

2023-06-13 Thread Thomas Passin
It may even crash the whole system. This is not a bug in VR3, but some disconnect between a XFCE change in the OpenGL graphics version and its support. Other projects have had the same problem. The error message is strange, supposedly from vmware: "vmw_ioctl_command error Cannot allocate mem

Re: Improved recursive import in devel. Please update scripts

2023-06-14 Thread Thomas Passin
On Wednesday, June 14, 2023 at 11:06:01 AM UTC-4 Edward K. Ream wrote: On Wed, Jun 14, 2023 at 8:06 AM Edward K. Ream wrote: On Wednesday, June 14, 2023 at 8:00:08 AM UTC-5 Edward K. Ream wrote: PR #3363 improves the outlines created by scri

Re: Discuss: don't use argparse to handle command-line arguments

2023-06-15 Thread Thomas Passin
I wrote my own a few years ago. It was simple to use and understand. It was too simple, perhaps, but it did what I needed for a range of small programs. The only thing it doesn't do is to flag unknown options: it ignores them instead. I say, if you don't need all the complexity of argparse d

Re: Discuss: don't use argparse to handle command-line arguments

2023-06-15 Thread Thomas Passin
msg = '"%s" parameter is missing its required value' % param raise ValueError(msg) return option On Thursday, June 15, 2023 at 8:50:14 AM UTC-4 Thomas Passin wrote: > I wrote my own a few years ago. It was simple to use and understand. It > was too simple,

Re: New argument processing code merged into devel

2023-06-16 Thread Thomas Passin
One additional idea you might entertain as long as you are thinking about argument parsing functions. Most command line processing functions return a string, and it is up to the downstream code to convert it to an int, float, whatever. My own - overly simple, for sure - includes an optional d

Re: Open new window

2023-06-17 Thread Thomas Passin
Yes, but just how depends on what you mean. For example, you can open a Qt window that displays MatPlotLib or Qt graphics. Or, if within Leo you run some MatPlotLib code, the pyplot.plot() command will open a window to display the plots. You can also run code for a system like Bokeh or Holov

Re: PR #3390 (more options work) merged into devel

2023-06-17 Thread Thomas Passin
Run from the leo-editor directory: py -m pytest [snip] leo\unittests\core\test_leoImport.py:106: AssertionError warnings summary leo\plugins\leo_babel\tests\lib_test.py:118 C:\Tom\git\leo-editor\leo\plugins\leo_babel\tests\lib_test.py:118

Re: Open new window

2023-06-17 Thread Thomas Passin
On Saturday, June 17, 2023 at 2:16:13 PM UTC-4 Thomas Passin wrote: I've attached an image file illustrating this (this example was provided by @wangzhaohe). I meant to write "this asciidoc markup was provided by @wangzhaohe". -- You received this message because you are su

Distutils Will Be Gone From The Standard Library In Python 3.12

2023-06-17 Thread Thomas Passin
I don't know if Leo uses distutils in any way, but it won't be in the standard library any more. It has been absorbed into *setuptools*, so its features aren't really gone, but how to use them will change. -- You received this message because you are subscr

Re: PR #3397 (screen shots) is ready for review

2023-06-18 Thread Thomas Passin
It's in the plugins directory but not in LeoPyRef as yet. There is also a screen_capture.py plugin ... how do they differ? On Sunday, June 18, 2023 at 1:59:15 PM UTC-4 Edward K. Ream wrote: > PR #3397 : > > 1. Removes all traces of the --scree

Re: PR #3397 (screen shots) is ready for review

2023-06-18 Thread Thomas Passin
Oh, I misunderstood. I thought you meant that the PR had already been merged. What I'm looking at in the plugins directory must be the old version. On Sunday, June 18, 2023 at 2:06:53 PM UTC-4 Thomas Passin wrote: > It's in the plugins directory but not in LeoPyRef as yet. Th

Re: Please test Leo's options code in devel

2023-06-18 Thread Thomas Passin
On Windows 10, python 3.11, pytest passes all tests. python 3.10: warnings summary leo\plugins\leo_babel\tests\lib_test.py:118 C:\Tom\git\leo-editor\leo\plugins\leo_babel\tests\lib_test.py:118: PytestCollectionWarning: cannot collect te

Re: Please test Leo's options code in devel

2023-06-18 Thread Thomas Passin
nday, June 18, 2023 at 10:09:05 PM UTC-4 Thomas Passin wrote: > On Windows 10, python 3.11, pytest passes all tests. python 3.10: > > warnings summary > leo\plugins\leo_babel\tests\lib_test.py:118 > C:\Tom\git\leo-editor\le

Re: Please test Leo's options code in devel

2023-06-18 Thread Thomas Passin
Python 3.9 on Linux Mint: === warnings summary === leo/plugins/leo_babel/tests/lib_test.py:118 /home/tom/git/leo-editor/leo/plugins/leo_babel/tests/lib_test.py:118: PytestCollectionWarning: cannot collect test class 'TestCmdr' because i

Re: Please test Leo's options code in devel

2023-06-18 Thread Thomas Passin
Python 3.10 on Ubuntu: === warnings summary === leo/plugins/leo_babel/tests/lib_test.py:118 /home/tom/git/leo-editor/leo/plugins/leo_babel/tests/lib_test.py:118: PytestCollectionWarning: cannot collect test class 'TestCmdr' because it

ChatGPT Helpful In Translating Tables

2023-06-18 Thread Thomas Passin
Very thoughtful piece by Jon Udell - Why LLM-assisted table transformation is a big deal . -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe

Re: Please test PR #3398 in the ekr-fix-test branch

2023-06-19 Thread Thomas Passin
On Windows 10, py -3.xx pytest: python 3.11: leo\unittests\test_importers.py ...s... [ 5%] warnings summary leo\plugins\leo_babel\tests\lib_test.py:118 C:\Tom\git\leo-editor\leo\plugins\leo_babel\tests\lib_tes

Re: Please test PR #3398 in the ekr-fix-test branch

2023-06-19 Thread Thomas Passin
Various Linuces: 3.11 Manjaro: leo\unittests\test_importers.py ...s... [ 5%] warnings summary leo/plugins/leo_babel/tests/lib_test.py:118 /home/tom/git/leo-editor/leo/plugins/leo_babel/tests/l

Re: ChatGPT Helpful In Translating Tables

2023-06-22 Thread Thomas Passin
Even copying selected text out of a pdf file can be unpleasant. Often there will be no newlines, so words may run together when they were visually separated by a line break. On Thursday, June 22, 2023 at 8:52:14 AM UTC-4 David Szent-Györgyi wrote: > On Sunday, June 18, 2023 at 11:06:30 PM UTC-

Re: expected behavior for removing spaces before lines outputed by an indented '@others'

2023-06-23 Thread Thomas Passin
My expectation is that all lines in the @others subtree will be additionally indented by the indentation of the "@others" string. That's how I have always used it. I just tried it out in a little outline similar to yours, and that's what I saw in the external file. So if the @others line is

Re: expected behavior for removing spaces before lines outputed by an indented '@others'

2023-06-23 Thread Thomas Passin
Oh, I see. If it's an external file with sentinels it could be tricky because you'd have to unindent the correct block the right amount, sentinels and all. I just succeeded with an @file tree, but it would be easy to mess it up. I converted the file to an @clean file and when I unindented t

Re: Leo active file bug and how to get the content of unl

2023-06-25 Thread Thomas Passin
On Sunday, June 25, 2023 at 3:27:38 AM UTC-4 iamap...@gmail.com wrote: [snip] 2. Is there a simple method to access the content of a specific `unl://` node? I found `core/LeoPyRef.leo#Code-->Core classes-->@file leoGlobals.py-->g.Urls & UNLs`, but it doesn't seem to provide the right function f

Re: Leo active file bug and how to get the content of unl

2023-06-25 Thread Thomas Passin
On Sunday, June 25, 2023 at 3:27:38 AM UTC-4 iamap...@gmail.com wrote: [snip] 2. Is there a simple method to access the content of a specific `unl://` node? I found `core/LeoPyRef.leo#Code-->Core classes-->@file leoGlobals.py-->g.Urls & UNLs`, but it doesn't seem to provide the right functi

Re: Leo active file bug and how to get the content of unl

2023-06-25 Thread Thomas Passin
On Sunday, June 25, 2023 at 7:59:09 AM UTC-4 iamap...@gmail.com wrote: Would you explain more fully what you mean by "access the content of..."? One way is to CTRL-click on the UNL's string in a body node. This will navigate you to that location, opening the outline if necessary. It should

Re: Leo active file bug and how to get the content of unl

2023-06-25 Thread Thomas Passin
"Remove support for cross-file UNLs" - WTF??? This will break some of my scripts. How are we going to navigate to other outlines by UNL? Wasn't that half of the point of having UNLs in the first place? This looks like a situation where we should be adding a new API method, not changing how t

Re: Leo active file bug and how to get the content of unl

2023-06-25 Thread Thomas Passin
On Sunday, June 25, 2023 at 8:43:25 AM UTC-4 iamap...@gmail.com wrote: For now, my UNL points to a position of the current outline. Could we have a quick way to get it? Assuming that these commands will continue to work after the PR: c0, p0 = c, c.p c2 = g.handleUnl(unl, c) content = c2.p.b

Re: Leo active file bug and how to get the content of unl

2023-06-25 Thread Thomas Passin
On Sunday, June 25, 2023 at 9:05:20 AM UTC-4 Thomas Passin wrote: On Sunday, June 25, 2023 at 8:43:25 AM UTC-4 iamap...@gmail.com wrote: For now, my UNL points to a position of the current outline. Could we have a quick way to get it? Assuming that these commands will continue to work after

Re: Leo active file bug and how to get the content of unl

2023-06-25 Thread Thomas Passin
I can record somewhere like markdown `[something](unl://xxx)` or even > pass parameter to that schema if the unl is a script... > `unl://x?para1=leo` > > On Sun, Jun 25, 2023 at 9:07 PM Thomas Passin wrote: > >> On Sunday, June 25, 2023 at 9:05:20 AM UTC-4 Thomas Passin

Re: Leo active file bug and how to get the content of unl

2023-06-25 Thread Thomas Passin
On Sunday, June 25, 2023 at 10:20:28 AM UTC-4 iamap...@gmail.com wrote: c0, p0 = c, c.p c2 = g.handleUnl(unl, c) content = c2.p.b # < here is the content of the UNL's body c0.selectPosition(p) Oops, typo! The last line should read c0.selectPosition(p0) Hi, Thomas, It works, thank you!

Re: About PR #3215: unbreakable unls!

2023-06-25 Thread Thomas Passin
I would rather have created a new gnx:// type and left existing unls alone. Will existing UNL syntax and methods still work? On Sunday, June 25, 2023 at 12:00:26 PM UTC-4 Edward K. Ream wrote: > PR #3215 changes > many files in complex ways

Re: About PR #3215: unbreakable unls!

2023-06-25 Thread Thomas Passin
So now my bookmarks manager will not work, something I use every day and depend on. I suppose I will have to pull out code from the attic and put it into my own module. Or recreate the pathlike part of the functionality, anyway. I'm unclear as to whether the gnx string for a given node - that

Re: About PR #3215: unbreakable unls!

2023-06-25 Thread Thomas Passin
On Sunday, June 25, 2023 at 10:36:32 PM UTC-4 Edward K. Ream wrote: On Sun, Jun 25, 2023 at 4:48 PM Thomas Passin wrote: So now my bookmarks manager will not work, something I use every day and depend on. I suppose I will have to pull out code from the attic and put it into my own module

Re: About PR #3215: unbreakable unls!

2023-06-26 Thread Thomas Passin
On Monday, June 26, 2023 at 7:34:57 AM UTC-4 Edward K. Ream wrote: On Sun, Jun 25, 2023 at 10:44 PM Thomas Passin wrote: Actually, bookmarks and zettelkasten should work *better* than before, provided: - they use the *new* p.get_UNL() and - they work with both legacy and new unls, which they

Re: About PR #3215: unbreakable unls!

2023-06-26 Thread Thomas Passin
After checking out the branch for this PR: 1. CTRL-clicking on an old-style unl pointing into the same outline navigates to the right node; for a unl pointing into a different outline it does not navigate to the right place or even the right outline. 2. Both the bookmark manager and the zettelk

Re: Leo active file bug and how to get the content of unl

2023-06-26 Thread Thomas Passin
On Monday, June 26, 2023 at 1:29:24 PM UTC-4 Edward K. Ream wrote: On Sun, Jun 25, 2023 at 7:51 AM Thomas Passin wrote: "Remove support for cross-file UNLs" - WTF??? This will break some of my scripts. How are we going to navigate to other outlines by UNL? Wasn't that half

Re: Leo active file bug and how to get the content of unl

2023-06-26 Thread Thomas Passin
On Monday, June 26, 2023 at 1:47:07 PM UTC-4 Edward K. Ream wrote: On Sun, Jun 25, 2023 at 10:22 AM Thomas Passin wrote: > Great! And if you want to do the same for a UNL in another outline, you can add these two lines (at least until that PR gets merged; I don't know about af

Re: leojs alpha

2023-06-26 Thread Thomas Passin
On Monday, June 26, 2023 at 10:09:17 AM UTC-4 jkn wrote: If the former, I'm wondering how 'upstream' work on Leo gets incorporated. If the latter, I'm curious about the process... Keeping two code bases synchronized is nearly impossible in the long run. Each one evolves in its own way, and

Re: About PR #3215: unbreakable unls!

2023-06-26 Thread Thomas Passin
On Monday, June 26, 2023 at 2:26:36 PM UTC-4 Edward K. Ream wrote: On Mon, Jun 26, 2023 at 12:50 PM Thomas Passin wrote: g.findGNX searches all *open* windows. The legacy version of g.handleUnl contained Leo-specific code which I deleted. Afterwards, the code called g.openWithFileName to

Re: About PR #3215: unbreakable unls!

2023-06-26 Thread Thomas Passin
Something close to seven plugins use unls, including mod-http and quickMove. They should all be checked to see if they will still work (I don't know which of them still work apart from unl changes). -- You received this message because you are subscribed to the Google Groups "leo-editor" grou

Code Review, Requirements, and Community Particiation

2023-06-26 Thread Thomas Passin
In the announcement about the proposed PR 3215 that massively affects UNLs, @Edward wrote "I won't wait for a code review. The code involved is too tricky to understand in an hour or five." This statement contains two red flags. If it's too tricky for a code review, there's something out of wh

Re: Code Review, Requirements, and Community Particiation

2023-06-26 Thread Thomas Passin
On Monday, June 26, 2023 at 5:15:45 PM UTC-4 mys...@gmail.com wrote: On Mon, Jun 26, 2023, 13:34 Thomas Passin wrote: In the announcement about the proposed PR 3215 that massively affects UNLs, @Edward wrote "I won't wait for a code review. The code involved is too tricky to und

Re: Execute-script in leojs

2023-06-26 Thread Thomas Passin
Lovely! Felix, I have to applaud all this hard and creative work you've been doing! On Monday, June 26, 2023 at 10:26:09 PM UTC-4 Félix wrote: > People have asked about live scripting in leojs in the past (cant remember > who exactly, perhaps Thomas, but I'm not sure) > > That person inquired

Status bar behavior, especially with PR 3215

2023-06-26 Thread Thomas Passin
In the status bar, a right-click brings up a two-item context menu: *Select All* and *Copy*. I have always found this a little confusing. *Copy* implies that it will copy the contents (usually the UNL), but actually you have to select it first before *Copy* will do anything. It's possible to s

Re: About PR #3215: unbreakable unls!

2023-06-26 Thread Thomas Passin
On Monday, June 26, 2023 at 2:26:36 PM UTC-4 Edward K. Ream wrote: On Mon, Jun 26, 2023 at 12:50 PM Thomas Passin wrote: 2. Both the bookmark manager and the zettelkasten apps partially work but not completely. I will look at using these new "legacy" methods next. Let me kno

Re: Discuss: option for short file names in unls?

2023-06-27 Thread Thomas Passin
I have several immediate reactions: 1. It was not long ago that we had a long discussion about whether to keep using functions in @path headlines. The outcome was no, don't include them. Why should it be different here? 2. Existing code in plugins and application-style scripts will break, sin

Heads Up - My Workbook Is Getting Destroyed

2023-06-27 Thread Thomas Passin
I haven't filed an issue on this yet because I haven't got all the conditions nailed down. But Leo has been replacing my workbook with the default CheatSheet ... sometimes. *Please* make sure you have a backup copy until this gets resolved. I noticed this behavior while I was testing code wit

Re: how to get all the content of the body?

2023-06-28 Thread Thomas Passin
I think you want the method g.getScript(). Look at its docstring in LeoPyRef.leo to see how to use it. BTW, here is how I found it. I remembered that Leo scripts get run by writing a file called *ScriptFile.py*. So I searched for that using the Nav tab. The first thing that came up was in *e

<    5   6   7   8   9   10   11   12   13   14   >