From mboxrd@z Thu Jan 1 00:00:00 1970 From: ST 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 Message-ID: <1538050703.1873.31.camel@gmail.com> References: <1538048127.1873.26.camel@gmail.com> <87o9cjjgn7.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5VFY-000142-La for Emacs-orgmode@gnu.org; Thu, 27 Sep 2018 08:18:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g5VFT-0000oN-OJ for Emacs-orgmode@gnu.org; Thu, 27 Sep 2018 08:18:32 -0400 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]:41754) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g5VFT-0000kI-Ea for Emacs-orgmode@gnu.org; Thu, 27 Sep 2018 08:18:27 -0400 Received: by mail-ed1-x52c.google.com with SMTP id f38-v6so4826121edd.8 for ; Thu, 27 Sep 2018 05:18:27 -0700 (PDT) In-Reply-To: <87o9cjjgn7.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: Emacs-orgmode@gnu.org On Thu, 2018-09-27 at 13:58 +0200, Nicolas Goaziou wrote: > Hello, > > ST 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!