From: Ihor Radchenko <yantar92@posteo.net>
To: Wiktor Kwapisiewicz <wiktor@metacode.biz>
Cc: emacs-orgmode@gnu.org
Subject: Re: Question about relative paths generated by Org
Date: Sat, 10 Aug 2024 17:03:38 +0000 [thread overview]
Message-ID: <87h6bs71jp.fsf@localhost> (raw)
In-Reply-To: <e87b0e99-bed9-4a6f-9f50-64d08a0476f3@metacode.biz>
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>
prev parent reply other threads:[~2024-08-10 17:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-08 12:18 Question about relative paths generated by Org Wiktor Kwapisiewicz
2024-08-10 17:03 ` Ihor Radchenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h6bs71jp.fsf@localhost \
--to=yantar92@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=wiktor@metacode.biz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.