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.
source share