how to get all the content of the body?

2023-06-27 Thread HaveF HaveF
Hi, Leo user, Who knows how to get all the contents of the body? What I want is to replace << xxx >> and @others in the body. I have created a simple function, but it has problems handling child nodes or children of child nodes. I suspect there is a ready-made function, but I can't find it

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

2023-06-27 Thread HaveF HaveF
I don't know the meaning of short url, is it just for easy look? I use wikiview.py plugin for easy viewing now :D I think we can just use long url directly, show it shortly (no matter what it is). But when press alt and hover the mouse, or edit that line, show the long url On Wednesday, June

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

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

2023-06-27 Thread Edward K. Ream
On Tuesday, June 27, 2023 at 2:41:21 PM UTC-5 tbp1...@gmail.com wrote: > I have several immediate reactions: Thomas, I have no idea what you are afraid of. > This kind of proposal will create something new that is not a UNL and not a GNX. It's a UNL because *g.handleUNL* accepts it. It's a

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,

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

2023-06-27 Thread Edward K. Ream
On Tuesday, June 27, 2023 at 1:34:40 PM UTC-5 Edward K. Ream wrote: Yet another new setting, *@bool full-unl-paths = True* (with the legacy-compatible default), would choose between the long and short forms. ... This option must *not* affect what p.get_UNL returns. Hmm. gnx-based unls

Discuss: option for short file names in unls?

2023-06-27 Thread Edward K. Ream
Legacy unls have always contained a full path name. For example: unl://C:/Users/Dev/ekr.leo#g.findUNL & helpers However, the proposed *@data unl_path_prefixes* setting would render long/absolute paths unnecessary, so using the following should work: unl://ekr.leo#g.findUNL & helpers Yet

ENB: Unbreakable UNLs: a status report

2023-06-27 Thread Edward K. Ream
This Engineering Notebook post discusses PR #3215 , especially Thomas's valid concerns about compatibility. Despite mistakes, work is going well. Our collaboration has been a great success. Consider this post an update to the PR's

Re: About PR #3215: unbreakable unls!

2023-06-27 Thread Edward K. Ream
On Mon, Jun 26, 2023 at 10:44 PM Thomas Passin wrote: In the zettelkasten app, using the new p.get_legacy_UNL() doesn't work > right. I *think* it's because I had to change the ">" to "%3E" to get QT > to pass it to my code when I click on these links (these paths appear in an > anchor