emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Fabrice Popineau <fabrice.popineau@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Display inline images for shortcuts links
Date: Fri, 18 Aug 2017 12:06:45 +0200	[thread overview]
Message-ID: <CAFgFV9PTxHFa-F7C+bTX6LE=uQo9bFAyiXN9EU22DfVobt1zUA@mail.gmail.com> (raw)
In-Reply-To: <CAFgFV9NZtphVuB6XPmPrut03DTEv2DynQpcRx_fzxR1NwkXX1Q@mail.gmail.com>

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

While we are at it, would it be possible to display an inline image when
the image is in the contents part of the link?

The rationale is that something like:

[[file:book.pdf][file:cover.jpg]]

is exported to html as:

<a href="book.pdf"><img src="cover.jpg" alt="cover.jpg" /></a>

The result would be a clickable image in the Org buffer the same way it is
in HTML.

Is there any drawback in doing this ?

Fabrice

2017-08-17 22:05 GMT+02:00 Fabrice Popineau <fabrice.popineau@gmail.com>:

>
>
> 2017-08-17 15:59 GMT+02:00 Nicolas Goaziou <mail@nicolasgoaziou.fr>:
>
>> Hello,
>>
>> I simply extended the link search to all link abbrevs, discarding those
>> that do not ultimately match a file.
>>
>> Does it solve your issue?
>>
>>
> Yes thanks. Much lighter.
>
> I like link abbreviations, because they allow to change the reference
> point where the files are stored (if needed some day)
>
> Regards,
>
> Fabrice
>
>

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

  reply	other threads:[~2017-08-18 10:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-17 12:20 Display inline images for shortcuts links Fabrice Popineau
2017-08-17 13:59 ` Nicolas Goaziou
2017-08-17 20:05   ` Fabrice Popineau
2017-08-18 10:06     ` Fabrice Popineau [this message]
2017-08-18 10:27       ` Nicolas Goaziou

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='CAFgFV9PTxHFa-F7C+bTX6LE=uQo9bFAyiXN9EU22DfVobt1zUA@mail.gmail.com' \
    --to=fabrice.popineau@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /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).