I find that file:// is used for absolute path, but one can use file://abc/def/../cde to point to the relative path. However in order to do that, I need to know current path.
Is there a way to make file://<CURRENT_PATH>/../abc.pdf so that Leo knows the CURRENT_PATH to fill it up to open the abc.pdf file? On Nov 12, 2:46 pm, smcho <[email protected]> wrote: > I have a leo file in directory A/B, and put 15.pdf file in A. > I tried @url 'file:./../15.pdf', but it doesn't work. > > The error message printed is as follows. > > 0:32: execution error: An error of type -2110 has occurred. (-2110) > > On Nov 11, 5:25 pm, "Edward K. Ream" <[email protected]> wrote: > > > > > On Thu, Nov 11, 2010 at 2:43 PM, smcho <[email protected]> wrote: > > > My question is can I make the link in the relative way? > > > The following works: > > > @url 'file:./../doc/leoDocs.leo#Users Guide-->Basics-->Customizing Leo' > > > For reference, see the code in g.handleUrlInUrlNode. There is a > > comment which says: > > > Most browsers should handle the following urls: > > ftp://ftp.uu.net/public/whatever. > > http://localhost/MySiteUnderDevelopment/index.html > > file://home/me/todolist.html > > > I'm not sure how reliable that comment is :-) > > > Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
