emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "西 顾" <z.ref@outlook.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Enhancement Proposal for 'org-link-file-path-type' Behavior
Date: Tue, 16 Jan 2024 12:00:38 +0000	[thread overview]
Message-ID: <OS3P286MB25657ED1C2BF5C9AECCEEF0AF9732@OS3P286MB2565.JPNP286.PROD.OUTLOOK.COM> (raw)

[-- Attachment #1: Type: text/plain, Size: 509 bytes --]

Dear Org mode maintainers,

I'd like to suggest a small enhancement to the 'org-link-file-path-type' option. When set to 'function', it currently passes an absolute path to the user's custom function. This limits flexibility as the original path input is not available to the function.

For better customization, I propose passing the raw path to the function. Users needing an absolute path could use 'expand-file-name' within their function.

Thank you for your time and consideration.

Best,
Ref

[-- Attachment #2: Type: text/html, Size: 1975 bytes --]

             reply	other threads:[~2024-01-16 12:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-16 12:00 西 顾 [this message]
2024-01-16 16:06 ` [POLL] Change calling convention for when `org-link-file-path-type' is set to custom function (was: Enhancement Proposal for 'org-link-file-path-type' Behavior) Ihor Radchenko
2024-01-17  4:59   ` Christopher M. Miles
2024-01-17 13:17     ` Ihor Radchenko
2024-02-17 15:27   ` Ihor Radchenko

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OS3P286MB25657ED1C2BF5C9AECCEEF0AF9732@OS3P286MB2565.JPNP286.PROD.OUTLOOK.COM \
    --to=z.ref@outlook.com \
    --cc=emacs-orgmode@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).