emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about relative paths generated by Org


From: Ihor Radchenko
Subject: Re: Question about relative paths generated by Org
Date: Sat, 10 Aug 2024 17:03:38 +0000

Wiktor Kwapisiewicz <wiktor@metacode.biz> writes:

> One thing bothers me: the links generated by the ":link t" option on the 
> clocktable [0] are absolute [1] and it causes problems when using the 
> same file on two different machines:
> ...
> I've tried adjusting that with `(setq org-link-file-path-type 
> 'relative)` but it doesn't seem to have any effect on the automatically 
> generated clocktable (I ran emacs -nw README.org so the PWD should be 
> correct).
>
> Is there anything I could try to make the links relative so that they 
> look like this: [[file:README.org::Task 3][Task 3]] ?

Absolute file path is currently hard-coded in
`org-clock-get-table-data'. I agree that it would make sense to respect
`org-link-file-path-type'.

Someone has to factor out link path format from `org-insert-link' and
re-use it.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]