Links between org files

Say I have two org files, file1.org and file2.org on disk (let it be assumed that they are in the same directory). How to create a link to file1.org before file2.org ?

As soon as I have a link to file1.org , let's say that I have a cursor (dot) sitting at this link. How can I tell Emacs to show me the corresponding file?

Finally, what if I want to create a link to a specific file2.org element?

+6
source share
2 answers

Use the Cc Cl shortcut to create a link and use the syntax

 file:./file2.org 

and use Cc Co with the cursor over the link to view this link.

To go to a specific item, use

  file:projects.org::*task title heading search in Org file 

doc: http://orgmode.org/org.html#External-links

you can even search for words:

 file:projects.org::some words 
+8
source

I like to use org-id-copy . It is an accurate comparison tool to other methods that give you trouble when there are many candidates.

After the call, the current header will have the ID set in its properties box. ID looks like 5d76eafc-94f6-47b1-ae4c-a7e917986fd1 , and now it is in your kill ring. You can paste Cc Cl to make it look like

 [[id:5d76eafc-94f6-47b1-ae4c-a7e917986fd1][link]] 

You can see an example of use in a single file at https://gist.github.com/abo-abo/6040382 , but it also works in several files.

+2
source

All Articles