emacs-orgmode
[Top][All Lists]
Advanced

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

Question about relative paths generated by Org


From: Wiktor Kwapisiewicz
Subject: Question about relative paths generated by Org
Date: Thu, 8 Aug 2024 14:18:04 +0200

Hello,

I'm using Org-mode's clock feature and it's really great!

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:

#+BEGIN: clocktable :scope file :maxlevel 3 :link t
#+CAPTION: Clock summary at [2024-08-08 Thu 11:02]
| Headline     | Time   |      |
|--------------+--------+------|
| *Total time* | *4:32* |      |
|--------------+--------+------|
| [[file:/home/runner/work/org-test/org-test/README.org::Project][Project]] | 4:32 | | | \_ [[file:/home/runner/work/org-test/org-test/README.org::Task 1][Task 1]] | | 3:30 | | \_ [[file:/home/runner/work/org-test/org-test/README.org::Task 3][Task 3]] | | 1:02 |
#+END:

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]] ?

I've made a repository for reproducing this case: https://github.com/wiktor-k/org-test and I'm using emacs 29.4 and org 9.6.15.

Thank you for your time and help!

Kind regards,
Wiktor

[0]: https://github.com/wiktor-k/org-test/blob/main/README.org?plain=1#L39

[1]: https://github.com/wiktor-k/org-test/blob/main/README.org?plain=1#L46



reply via email to

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