org-brain icon indicating copy to clipboard operation
org-brain copied to clipboard

Fix relative symlink paths when creating links

Open riclage opened this issue 1 year ago • 0 comments

#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.

riclage avatar Jul 03 '24 20:07 riclage