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

org-remark-link: Non absolute path option

Open Ypot opened this issue 3 months ago • 3 comments

Hi!

Could the org-remark-link be relative or use the home path? If I read in different computers, the links don't work, because the path is absolute, and it changes from one computer to another. Even more, for the same book a different main headline is created for each computer.

Thanks, I keep using it :-)

Ypot avatar Sep 22 '25 20:09 Ypot

Are you talking about this? An excerpt from the user manual. See the “Relative file name” option.

Option: org-remark-source-file-name Function that returns the file name to point back at the source file. The function is called with a single argument: the absolute file name of source file. The ‘default-directory’ is temporarily set to the directory where the marginal notes file resides. This means that when the ‘Relative file name’ option is selected, the source file name recorded in the marginal notes file will be relative to it.

nobiot avatar Sep 24 '25 06:09 nobiot

Hi

I have this setting: ... '(org-remark-source-file-name 'file-relative-name)

But the saved path is not relative (it doesn't use ~/...), but absolute.

I am using Windows 10.

Ypot avatar Oct 08 '25 06:10 Ypot

... '(org-remark-source-file-name 'file-relative-name)

You may be making a syntactic mistake (not sure though). Can you try file-relative-name without the apostrophe? (So remove the before file-relative-name).

nobiot avatar Oct 12 '25 21:10 nobiot