I want to add an internal link to a section inside an org roam note.
The problem is that when I put the cursor on the link emacs thinks I want to create a new org-roam note.
So I guess this is not the proper way to insert an internal link. How should I do it?
C-c L to label the the section. A :PROPERTIES: drawer will appear along with a generated id.
Copy the id
where "see section [[#my_custom_id]] instead, C-c C-l and select id: and paste the id. org-toggle-link-display shows the link as [[id:f27926b3-0333-4233-9c96-4d716d1fb5ee]] in my case.
This link will work on any file, the same one and outside files.
The first example is a plain Org Mode’s capability, I think (I believe it’s called “fuzzy link”).
The second is an Org-roam capability.
The last example looks to be a bug (the asterisk “*” should be inserted after “roam:” to be the same as the second example – not reported yet, I don’t think).
I believe if you want also a backlink for the heading, then you would need the ID property for the headline (but that does not seem to be what you are going for).
When I put a link and the cursor is before the closing brackets [[link|]] (in the | sign), then TAB does not take me out of the link.
Do you have the same behavior?
I use org-cdlatex which might cause problems here…
I think that is deliberate design choice.
I asked Jethro (believe it was somewhere in the forum); you may want to follow the link by a “*” to further look for a headline within the note, like this: [[link*headline]] That’s why the cursor remains inside the bracket. I usually use C-e to get out as a link is almost always (for me) at the end of the line I am writing (because I’m in the middle of the writing).