Re: Cross-file links

2017-06-20 Thread Largo84
Seems to work so far, that's awesome! Rob. On Tuesday, June 20, 2017 at 4:49:15 PM UTC-4, Terry Brown wrote: > > > Ok, try a5409116d - not heavily tested, but seems to work, let me know. > > Cheers -Terry > > -- You received this message because you are subscribed to the Google Grou

Re: Cross-file links

2017-06-20 Thread Terry Brown
On Tue, 20 Jun 2017 13:12:05 -0700 (PDT) Largo84 wrote: > I take it this isn't the way it works now? When I try this, it > appends the ##Text to the URL making it an invalid link. Ok, try a5409116d - not heavily tested, but seems to work, let me know. Cheers -Terry > Rob.. > > On Tue

Re: Cross-file links

2017-06-20 Thread Terry Brown
On Tue, 20 Jun 2017 13:12:05 -0700 (PDT) Largo84 wrote: > I take it this isn't the way it works now? When I try this, it > appends the ##Text to the URL making it an invalid link. Not yet :-} Cheers -Terry > Rob.. > > On Tuesday, June 20, 2017 at 2:49:51 PM UTC-4, Largo84 wrote: > > >

Re: Cross-file links

2017-06-20 Thread Largo84
I take it this isn't the way it works now? When I try this, it appends the ##Text to the URL making it an invalid link. Rob.. On Tuesday, June 20, 2017 at 2:49:51 PM UTC-4, Largo84 wrote: > > >> I think a descriptive text would be good. There's a cheap way to do >> it, and a more compl

Re: Cross-file links

2017-06-20 Thread Largo84
> > > I think a descriptive text would be good. There's a cheap way to do > it, and a more complicated way. > > Cheap > > http://www.example.com/##For example > > just decide that anything following a double hash in the URL is the > descriptive string. This could be pointed out by the popup

Re: Cross-file links

2017-06-20 Thread Terry Brown
On Mon, 19 Jun 2017 19:10:14 -0700 (PDT) Largo84 wrote: > Hmm, didn't think about what it would look like in small screen mode. > I usually run maximized. Just wondering about possibilities, would it > be useful (and doable) to ask for descriptive text in addition to the > URL when creating the l

Re: Cross-file links

2017-06-19 Thread Largo84
Hmm, didn't think about what it would look like in small screen mode. I usually run maximized. Just wondering about possibilities, would it be useful (and doable) to ask for descriptive text in addition to the URL when creating the link? I envision for some node that might have multiple links t

Re: Cross-file links

2017-06-19 Thread Terry Brown
On Mon, 19 Jun 2017 14:07:33 -0700 (PDT) Largo84 wrote: > For URLs (http://and https://) links, is there a way to edit the > string in the Links tab to be either more descriptive or eliminated > altogether? A few examples to illustrate the point: > > http://leoeditor.com/ > > customizing.html @

Re: Cross-file links

2017-06-19 Thread Largo84
For URLs (http://and https://) links, is there a way to edit the string in the Links tab to be either more descriptive or eliminated altogether? A few examples to illustrate the point: http://leoeditor.com/ customizing.html @ http://leoeditor.com/customizing.html Manfrotto_143BKT_143BKT_Camera

Re: Cross-file links

2017-06-18 Thread Largo84
Terrific, thanks! On Sunday, June 18, 2017 at 10:25:42 PM UTC-4, Terry Brown wrote: > > On Sun, 18 Jun 2017 17:48:41 -0700 (PDT) > Largo84 > 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:/

Re: Cross-file links

2017-06-18 Thread Terry Brown
On Sun, 18 Jun 2017 17:48:41 -0700 (PDT) Largo84 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

Re: Cross-file links

2017-06-18 Thread Largo84
Small initial testing using the file link copied from the bottom shows the backlink is created in both files; the target and the source. It's slightly less convenient than the script button to create the UNL (I didn't know there was difference in form as they always worked either way), but this

Re: Cross-file links

2017-06-18 Thread Largo84
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

Re: Cross-file links

2017-06-18 Thread Terry Brown
On Sat, 17 Jun 2017 10:36:46 -0700 (PDT) Largo84 wrote: > Also, if I link a UNL to another .leo file node, I get the following > in the linked file log pane: > > Partial UNL match > No perfect match, not creating backlink How are you generating the UNL that you link to? It's best to just enter

Re: Cross-file links

2017-06-18 Thread Terry Brown
On Sat, 17 Jun 2017 07:44:36 -0700 (PDT) Largo84 wrote: > I get some errors when I click on certain nodes that already had some > kind of link already (not exactly sure what). Maybe this helps: > > hook failed: select3, 0x0A208F28>>, leo.plugins.backlink > Traceback (most recent call l

Re: Cross-file links

2017-06-17 Thread Largo84
Also, if I link a UNL to another .leo file node, I get the following in the linked file log pane: Partial UNL match No perfect match, not creating backlink -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop r

Re: Cross-file links

2017-06-17 Thread Largo84
I get some errors when I click on certain nodes that already had some kind of link already (not exactly sure what). Maybe this helps: hook failed: select3, >, leo.plugins.backlink Traceback (most recent call last): File "e:\GitHub Repos\Leo\leo\core\leoPlugins.py", line 341, in callTagHandler

Re: Cross-file links

2017-06-16 Thread Largo84
That's awesome, Terry! I saw the GitHub change, but haven't had a chance to try it yet, but will sometime over the weekend. I glanced at your code and confirmed what I suspected; I would have no idea how to do that:-) Rob.. On Friday, June 16, 2017 at 4:58:14 PM UTC-4, Terry Brown wrote

Re: Cross-file links

2017-06-16 Thread Terry Brown
On Fri, 2 Jun 2017 07:56:31 -0700 (PDT) Largo84 wrote: > I use the backlinks plugin which works well to create links to other > nodes *within* a single .leo file. However, it won't create links to > nodes in other .leo files. The bookmarks plugin doesn't really do > what I need either. Any sugges

Re: Cross-file links

2017-06-05 Thread Edward K. Ream
On Sun, Jun 4, 2017 at 8:27 PM, Terry Brown wrote: > On Sun, 4 Jun 2017 12:42:10 -0700 (PDT) > Largo84 wrote: > > [snip] > > > Are there any technical, design or practical reasons why the > > backlinks plugin is limited to 'internal' links? I thought about > > Sort of. The backlinks plugin uses

Re: Cross-file links

2017-06-04 Thread Terry Brown
gt; > > I suspect the backlinks plugin could be extended to use UNLs too, > > might be a bit fiddly because the graphviz plugin depends on > > backlinks, so that would need tweaking too. But probably makes > > more sense than creating a new but very similar plugin. I'l

Re: Cross-file links

2017-06-04 Thread Largo84
try and remember to > investigate, but won't be for a few days. > > (UNLs can include file info. and thus make cross file links, like Lewis > said) > > Cheers -Terry > > -- You received this message because you are subscribed to the Google Grou

Re: Cross-file links

2017-06-04 Thread Terry Brown
n backlinks, so that would need tweaking too. But probably makes more sense than creating a new but very similar plugin. I'll try and remember to investigate, but won't be for a few days. (UNLs can include file info. and thus make cross file links, like Lewis said) Cheers -Terry > crea

Re: Cross-file links

2017-06-04 Thread Largo84
Thanks, Lewis, but that's not what I'm looking for. I don't want the URL text to be in the body text at all. Consider this use case: - I write some content (LaTex, MarkDown or whatever) and I want to create several links to other references (for example, citations or further research)

Re: Cross-file links

2017-06-04 Thread lewis
You can use the bookmarks plugin to create links to other nodes *within* a single .leo file. Simply edit the bookmark node's body text to include the node name: N:/path/to/file/my_file.leo#node_name and for multi-level nodes: N:/path/to/file/my_file.leo#node_name-->child_node Regards Lewis On S

Re: Cross-file links

2017-06-02 Thread Largo84
Thanks, but that doesn't really solve the problem. unl:// links work just fine as they are, but I'm trying to not clutter the body pane with a long path. Replacing "unl://" with "file://" doesn't accomplish that. Rob... On Friday, June 2, 2017 at 12:49:28 PM UTC-4, xgid wrote: > > > Any sug

Re: Cross-file links

2017-06-02 Thread xgid
Anyway, what I think would be great to have is a "leo://" protocol which could not only be used inside Leo documents (and work as the current UNLs) but used from documents outside Leo with the same result of having Leo open the file focused in the given node. I have not investigated the issue i

Re: Cross-file links

2017-06-02 Thread Xavier G. Domingo
Any suggestions on how to create links to nodes in other .leo files? I've been using a simple alternative with good success since the last changes made by EKR to the handleUrl logic some months ago: just use the UNL as is but replacing "unl://" by "file://". Best regards, Xavier -- You receiv

Re: Cross-file links

2017-06-02 Thread Terry Brown
On Fri, 2 Jun 2017 07:56:31 -0700 (PDT) Largo84 wrote: > I use the backlinks plugin which works well to create links to other > nodes *within* a single .leo file. However, it won't create links to > nodes in other .leo files. The bookmarks plugin doesn't really do > what I need either. Any sugges

Cross-file links

2017-06-02 Thread Largo84
I use the backlinks plugin which works well to create links to other nodes *within* a single .leo file. However, it won't create links to nodes in other .leo files. The bookmarks plugin doesn't really do what I need either. Any suggestions on how to create links to nodes in other .leo files? Of