emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Feature proposal: Triple square brackets to create a link to a f


From: ST
Subject: Re: [O] 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

On Thu, 2018-09-27 at 13:58 +0200, Nicolas Goaziou wrote:
> Hello,
> 
> ST <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]