Re: [O] Org links that point to filenames with space do not open
OK, found the issue, had to use url-insert-entities-in-string instead of shell-quote-argument. Thanks, - Marcelo. On Thu, Sep 6, 2012 at 11:47 PM, Marcelo de Moraes Serpa < celose...@gmail.com> wrote: > Nick, it's a custom script... however, it looks like I was using the wrong > format. Instead of escaping the space chars, I should uri-encode them it > seems. I'll try that. Thanks! > > > On Thu, Sep 6, 2012 at 11:03 PM, Nick Dokos wrote: > >> Marcelo de Moraes Serpa wrote: >> >> > I have several links that use the file protocol to open files indexed in >> > org entries. They work fine for entries that point to file whose >> filenames >> > do *not* contain space, but for entries with space in them, it just >> fails >> > silently. I.e: >> > >> > [[file:/Volumes/ext-hd/pdfs/Name\ Of\ The-\ 4th\ file.pdf]] >> > >> > I even escaped the filename using the (shell-quote-argument) function >> when >> > indexing, but no luck. >> > >> >> This is a link to a directory. I grabbed it with C-c l and inserted it >> with C-c C-l. It seems to work fine: >> >> [[file:lib/music/Arnold%20Schoenberg/Moses%20und%20Aron/][Moses und Aron] >> >> Nick >> > >
Re: [O] Org links that point to filenames with space do not open
Nick, it's a custom script... however, it looks like I was using the wrong format. Instead of escaping the space chars, I should uri-encode them it seems. I'll try that. Thanks! On Thu, Sep 6, 2012 at 11:03 PM, Nick Dokos wrote: > Marcelo de Moraes Serpa wrote: > > > I have several links that use the file protocol to open files indexed in > > org entries. They work fine for entries that point to file whose > filenames > > do *not* contain space, but for entries with space in them, it just fails > > silently. I.e: > > > > [[file:/Volumes/ext-hd/pdfs/Name\ Of\ The-\ 4th\ file.pdf]] > > > > I even escaped the filename using the (shell-quote-argument) function > when > > indexing, but no luck. > > > > This is a link to a directory. I grabbed it with C-c l and inserted it > with C-c C-l. It seems to work fine: > > [[file:lib/music/Arnold%20Schoenberg/Moses%20und%20Aron/][Moses und Aron] > > Nick >
Re: [O] Org links that point to filenames with space do not open
Marcelo de Moraes Serpa wrote: > I have several links that use the file protocol to open files indexed in > org entries. They work fine for entries that point to file whose filenames > do *not* contain space, but for entries with space in them, it just fails > silently. I.e: > > [[file:/Volumes/ext-hd/pdfs/Name\ Of\ The-\ 4th\ file.pdf]] > > I even escaped the filename using the (shell-quote-argument) function when > indexing, but no luck. > This is a link to a directory. I grabbed it with C-c l and inserted it with C-c C-l. It seems to work fine: [[file:lib/music/Arnold%20Schoenberg/Moses%20und%20Aron/][Moses und Aron] Nick
Re: [O] Org links that point to filenames with space do not open
I'm pretty sure a (") needs to go right after the first (:) and another needs to be just before the first (]) character. On Thu, 6 Sep 2012, Marcelo de Moraes Serpa wrote: > Hi list, > > I have several links that use the file protocol to open files indexed in > org entries. They work fine for entries that point to file whose filenames > do *not* contain space, but for entries with space in them, it just fails > silently. I.e: > > [[file:/Volumes/ext-hd/pdfs/Name\ Of\ The-\ 4th\ file.pdf]] > > I even escaped the filename using the (shell-quote-argument) function when > indexing, but no luck. > > Any ideas? > > More info: > > - GNU Emacs 23.4.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of > 2012-01-29 on bob.porkrind.org > - Org-mode version 7.9.1 (release_7.9.1-145-g0a6165-git @ mixed > installation! /Applications/Emacs.app/Contents/Resources/lisp/org/ and > /Users/fullofcaffeine/.emacs.d/vendor/org/lisp/) > - Mac OSX Lion. > > Thanks, > > - Marcelo. > --- jude Adobe fiend for failing to Flash
[O] Org links that point to filenames with space do not open
Hi list, I have several links that use the file protocol to open files indexed in org entries. They work fine for entries that point to file whose filenames do *not* contain space, but for entries with space in them, it just fails silently. I.e: [[file:/Volumes/ext-hd/pdfs/Name\ Of\ The-\ 4th\ file.pdf]] I even escaped the filename using the (shell-quote-argument) function when indexing, but no luck. Any ideas? More info: - GNU Emacs 23.4.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-01-29 on bob.porkrind.org - Org-mode version 7.9.1 (release_7.9.1-145-g0a6165-git @ mixed installation! /Applications/Emacs.app/Contents/Resources/lisp/org/ and /Users/fullofcaffeine/.emacs.d/vendor/org/lisp/) - Mac OSX Lion. Thanks, - Marcelo.