I think it might need to come up a level of abstraction from there.
I write mainly in rst. Clickable html URLs would be of limited utility to
me. The other thing to consider is that when constructing a document, I
tend to work in small pieces, each with its own node. I also use clones.
Clickable links need to go not only to external documents in external
applications to be useful, they also need to go to internal targets, both
within the current node and in all other nodes within the current .leo file
and other .leo files as well. I currently use bookmarks to assist in this,
but full support for rst external, internal, indirect and implicit
hyperlink targets in the editor would be awesome. But it would also be of
limited utility to someone writing in markdown or html or yaml or xml or
Textile or AsciiDoc or...
An alternative would be to develop a hyperlink standard unique to Leo that
is commented out of all output rendered from the files. I am not sure how
well this approach would work for those dealing with source code though.
Chris
On Tuesday, October 28, 2014 9:36:09 AM UTC-7, Fidel N wrote:
>
> In case someone ends up digging into this, this code might be useful.
> The following script "embeds" an hyper link inside the selected node, but
> its not clickable for some reason:
>
> c.frame.body.widget.setOpenExternalLinks(True)
> c.frame.body.widget.insertHtml("<a href='http://www.w3schools.com/
> '>w3Schools</a>")
> c.frame.body.widget.show()
>
> Just copy paste and run in any node body in a new outline (some strange
> things happen after that).
>
> There, you will just be accessing the body widget, which happens to be a
> QtTextBrowser
> <http://qt-project.org/doc/qt-4.8/qtextbrowser.html>Class, which happens
> to already support html and hyper links.
>
> HTH.
>
>
--
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 http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.