On Mon, Jun 26, 2023 at 12:57 PM Thomas Passin wrote:
Oh ye of little faith. In the PR the call to g.app.selectLeoWindow appears
> in both g.findUNL and g.findGNX. So these calls have already been done when
> g.handleUnl returns.
>
>
> That's not the point. This bit of code returns the focus to t
On Mon, Jun 26, 2023 at 12:56 PM Thomas Passin wrote:
1.I was probably thinking that g.findUNL (the legacy unl-finding function)
might return a position in another outline. To my knowledge, that has never
been true.
>
> Yes it has. Here's the docstring from the (unreplaced) g.findUNL:
>
> F
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 after that):
# A
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 of the point of
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 after that):
# Add this after the "content =" line.
if c2 is not c0:
g.app.selectL
On Mon, Jun 26, 2023 at 12:32 PM Edward K. Ream wrote:
> Oops! In the PR g.handleUNL returns None. I'll restore the legacy
operation immediately.
Done. g.handleUNL returns a commander or None, exactly as in devel.
Edward
--
You received this message because you are subscribed to the Google G
On Sun, Jun 25, 2023 at 8:05 AM Thomas Passin wrote:
> Assuming that these commands will continue to work after the PR:
c0, p0 = c, c.p
c2 = g.handleUnl(unl, c)
Oops! In the PR g.handleUNL returns None. I'll restore the legacy
operation immediately.
Edward
--
You received this message becau
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 of the point of having UNLs in the first place?
This conversation is likely out
>
> Probably a good place is leo-editor-contrib.
>
Interesting resources! Thanks, and have a nice day :D
--
--
Sincerely,
HaveF
--
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, se
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!
>
> 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!
It's a useful snippet, we should write it down. But where
Markdown won't know what to do with a UNL, so you can't expect navigation
to work in the rendered page. Also, remember that if an outline's
organization gets changed - i.e., you move a node - its UNL won't be
correct any more. So you only want to use UNLs like that when you have
high confiden
Thanks Thomas, I'll try it later
Another thought: is it a good idea to take UNL as a system level schema?
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 Thoma
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 th
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
"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
>
>
>
> Do you mean you want a method or function to return the text of the body
> of the node addressed by the UNL? In general, the UNL could point to
> another outline. Will you be looking only in the current outline, or any
> outline? And if the latter, do you care if that other outline gets o
On Sun, Jun 25, 2023 at 7:22 AM Thomas Passin wrote:
>
> 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 yo
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
>
>
>
> 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
> also be easy enough to write a new command that navigates to a
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
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
Hi, there,
I am delighted to see that the Leo editor is still under active
development. The leojs has been a pleasant surprise as well.
After a hiatus of several years, I have returned to using the Leo editor.
To this day, I have yet to find any software on the market that rivals the
advanced
23 matches
Mail list logo