Kungsgeten / org-brain

Org-mode wiki + concept-mapping
MIT License
1.72k stars 102 forks source link

Fix relative symlink paths when creating links #399

Open riclage opened 2 months ago

riclage commented 2 months ago

335 introduced a bug when creating a backlink in notes files pointed to a symbolic link.

(org-brain-entry-path choice) already uses file-truename and thus returns the actual source path. buffer-file-name returns the path in the symbolic link, creating the inconsistent match.

For both paths to match, this change simply adds a file-truename call to get the actual source of buffer-file-name.