On Sun, 18 Jun 2017 17:48:41 -0700 (PDT)
Largo84 <[email protected]> wrote:
> I usually use a script that Edward wrote a while back:
> g.es(p.get_UNL(with_proto=True))
>
> It generates something like:
> unl://g:\Shared%20Workbook.leo#Reference:6-->Pandoc%20Instructions:0
>
> As opposed to what is in the status bar below:
> g:\Shared Workbook.leo#Reference-->Pandoc Instructions
>
> Is there a script version (or additional parameters) that would
> generate a UNL that would 'play nicer' with the plugin?
g.es(p.get_UNL(with_proto=False))
:)
Or just
g.es(p.get_UNL())
But maybe this is better still
from leo.core.leoQt import QtWidgets
clipboard = QtWidgets.QApplication.clipboard()
unl = p.get_UNL()
clipboard.setText(unl)
g.es("'%s' copied to clipboard" % unl)
so the best form of UNL's on the clipboard and you can just go to the
other outline and do the link to URL / UNL bit.
Cheers -Terry
> Rob.......
>
> On Sunday, June 18, 2017 at 11:13:38 AM UTC-4, Terry Brown wrote:
> >
> >
> >
> > How are you generating the UNL that you link to? It's best to just
> > enter something like
> >
> > "c:\leo\git\leo-editor\leo\plugins\leoPlugins.leo#Plugins-->Files
> > and nodes-->@file backlink.py-->class
> > backlinkController-->updateTabInt"
> >
> > without quotes, i.e. the text shown by default at the bottom of
> > Leo's main window. As opposed to the indexed form:
> >
> >
> >
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.