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 zettelkasten apps partially work but not completely. I will look at using these new "legacy" methods next. On Monday, June 26, 2023 at 1:21:07 PM UTC-4 Edward K. Ream wrote: > On Monday, June 26, 2023 at 10:02:40 AM UTC-5 Edward K. Ream wrote: > > > I'll add p.get_legacy_UNL and p.get_short_legacy_UNL. > > I'll add expanded searching to g.findUNL, just as in g.findGNX. > > Both done. > > *Notes* > > 1. *Warning*: Plugins that call g.findUNL directly must *not *assume that > the returned position is in the same outline! Do something like this: > > p = g.findUNL(unlList, c) > # Do not assume that p is in c. > if p: > c2 = p.v.context > c2.redraw(p) > > 2. g.handleUnl contains code similar to that shown above, so the warning > applies only to writers of plugins. > > 3. g.findUNL no longer does *any* gui-related operations. It was never a > clever idea. > > 4. No, I won't add a kwarg to g.findUNL that suppress other-outline > searches. > > EKR > -- 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 email to leo-editor+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/ff781c0d-dfd4-4791-ae25-68bb088e41ffn%40googlegroups.com.