emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: ST <smntov@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: Emacs-orgmode@gnu.org
Subject: Re: Feature proposal: Triple square brackets to create a link to a file AND include the file
Date: Thu, 27 Sep 2018 15:18:23 +0300	[thread overview]
Message-ID: <1538050703.1873.31.camel@gmail.com> (raw)
In-Reply-To: <87o9cjjgn7.fsf@nicolasgoaziou.fr>

On Thu, 2018-09-27 at 13:58 +0200, Nicolas Goaziou wrote:
> Hello,
> 
> ST <smntov@gmail.com> writes:
> 
> > it would be nice to be able to make URIs to INCLUDEd files clickable. In
> > order to make them also lightweight, readable and corresponding to
> > current link syntax, I would suggest the following:
> >
> > [[[dir/file]]]
> > [[[dir/file]] :lines "5-10"]
> > [[[dir/file][My file]] :lines "5-10"]
> >
> > as clickable, including links.
> >
> > What do you think?
> 
> This does not make sense: include files are not meant to be inlined.
> Links are.

What do you mean by "inlined"? During an export such a link
[[[dir/file]]] should be replaced with the content of the "file", and
the link itself disappear. But in the source .org file it is just
shorter/cleaner way to write 

#+INCLUDE: "dir/file"

and be able to click the link to open the file in a separate buffer.

> 
> > Or maybe there is already something like this, if yes
> > - how can I achieve the same?
> 
> Use `C-c '` on a file. 

Why shouldn't it be possible to achieve just the same by ALSO clicking
on the URI? If you use .org files as a wiki - this feature is quite
useful.

Thank you!

  reply	other threads:[~2018-09-27 12:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-27 11:35 Feature proposal: Triple square brackets to create a link to a file AND include the file ST
2018-09-27 11:58 ` Nicolas Goaziou
2018-09-27 12:18   ` ST [this message]
     [not found]     ` <87k1n7jeuk.fsf@nicolasgoaziou.fr>
2018-09-27 14:08       ` ST
2018-09-27 15:02         ` Nicolas Goaziou
2018-09-27 15:11           ` Kaushal Modi
2018-09-27 14:54     ` Nicolas Goaziou
2018-09-27 16:55 ` John Kitchin

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=1538050703.1873.31.camel@gmail.com \
    --to=smntov@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).