My org file looks something like this:

* Space Radiation
** Gamma Ray Info 
   - file://Library\March 2015\Gamma Ray Radiation Fundamentals.pdf
   - some notes

However the title has spaces so the link stops at the first space. As I have literally thousands of collected papers and books that spaces in the name, adding %20 or even '+' to fill the space is a major task and also makes the linked document title difficult to read especially if you have several lines of such links.

Is there a way to work around this without having to change all the file names to convert or delete the spaces in the file name?

  • 1
    What are you using to highlight the urls/make links? Jun 9 '15 at 19:34
  • 1
    Please clarify the question by describing exactly what you are doing to create the links you mention. Otherwise, the question risks being closed because it is unclear.
    – Drew
    Jun 9 '15 at 23:00
  • I stepped in to remove a bunch of irrelevant details from the question and added code markup. Now it is at least clear why this is a question.
    – Joe Corneli
    Jun 11 '15 at 12:33

If you put the links in a file using org-mode (e.g. ending in .org), you can create links like this by:

[[file:d:/path/to/filename with spaces]]

I'm assuming you are on Windows, and this works for on Windows 8, Emacs 24.4.1.

  • After updating all that, Meaningful Username has the answer. It didn't initially work for me but a restart of my installation fixed that. Thanks. Org makes an amazing documentation organizer. Finding a piece of software that properly provides a text file with full path and name was a task. Regexp does the renaming.
    – Arjay-El
    Jun 10 '15 at 15:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.