From: mail@kisaragi-hiu.com
To: emacs-orgmode@gnu.org
Subject: [Feature Request] Support org-link-abbrev-alist for clickable image links
Date: Sun, 14 Nov 2021 00:26:31 +0000 [thread overview]
Message-ID: <3f15f635e18453b369ca81e5105be114@kisaragi-hiu.com> (raw)
Org mode supports clickable images in the following form:
[[https://orgmode.org][file:/tmp/org-mode-logo.png]]
This is also displayed by =org-display-inline-images= as the second case:
#+begin_quote
An inline image is a link which follows either of these
conventions:
1. Its path is a file with an extension matching return value
from image-file-name-regexp and it has no contents.
2. Its description consists in a single link of the previous
type. In this case, that link must be a well-formed plain
or angle link, i.e., it must have an explicit "file" type.
#+end_quote
However, this docstring isn't quite true.
- The image link is parsed as a plain link, and thus if it contains spaces, it must be wrapped in angle brackets. This should be mentioned in the docstring.
- More crucially, it does not support =org-link-abbrev-alist=, which works in case 1.
Yes: [[file:/tmp/org-mode-logo.png]]
Yes: [[my-abbrev:org-mode-logo.png]]
Yes: [[https://example.com][file:/tmp/org-mode-logo.png]]
Yes: [[https://example.com][<file:/tmp/with a space.png>]]
No: [[https://example.com][file:/tmp/with a space.png]] (docstring should mention this and suggest angle links)
No: [[https://example.com][my-abbrev:org-mode-logo.png]] (this should work)
reply other threads:[~2021-11-14 0:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3f15f635e18453b369ca81e5105be114@kisaragi-hiu.com \
--to=mail@kisaragi-hiu.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).