From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Henderson Subject: Re: Shortcut to file Date: Sat, 12 Apr 2014 16:34:08 +1000 Message-ID: References: <87zjkqzrvd.fsf@ericabrahamsen.net> <87bnw7jj0z.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c383be34193a04f6d2a3f4 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYrVy-0008SD-OP for emacs-orgmode@gnu.org; Sat, 12 Apr 2014 02:34:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WYrVx-0004pU-OO for emacs-orgmode@gnu.org; Sat, 12 Apr 2014 02:34:10 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:56433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYrVx-0004pM-HB for emacs-orgmode@gnu.org; Sat, 12 Apr 2014 02:34:09 -0400 Received: by mail-wi0-f177.google.com with SMTP id cc10so1996908wib.4 for ; Fri, 11 Apr 2014 23:34:08 -0700 (PDT) In-Reply-To: <87bnw7jj0z.fsf@gmail.com> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nick Dokos Cc: org-mode --001a11c383be34193a04f6d2a3f4 Content-Type: text/plain; charset=UTF-8 C-u C-c C-l solves all problems. Now I can link any file (PDF etc.) from anywhere within org and with tab completion. Thanks. On Sat, Apr 12, 2014 at 1:58 PM, Nick Dokos wrote: > Chris Henderson writes: > > > Looks like org-insert-link doesn't have any tab completion feature to > list files on the > > system. How do I get that? > > > > I can tab complete file+sys: but then can't do ~/directory/file.txt > > > > Thanks. > > > > On Sun, Mar 16, 2014 at 3:31 PM, Eric Abrahamsen < > eric@ericabrahamsen.net> wrote: > > > > Chris Henderson writes: > > > > > Is there any way to quickly add a file's location rather than > typing > > > the whole file://path/to/location. The files are mostly freemind or > > > libreoffice calc/ word files. > > > > > > If the file or the directory is not there, it can also be created > > > from within org easily. > > > > > > Thanks > > > > Are these links to files? You can use `org-insert-link' with a prefix > > argument, to get the usual find-file interface, and a link inserted > once > > you've found it. > > You must have missed the "prefix argument" part of Eric's answer: C-u C-c > C-l > > -- > Nick > > > --001a11c383be34193a04f6d2a3f4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
C-u C-c C-l solves all problems. Now I can link any file (= PDF etc.) from anywhere within org and with tab completion. Thanks.


On Sat, Apr= 12, 2014 at 1:58 PM, Nick Dokos <ndokos@gmail.com> wrote:
Chri= s Henderson <henders254@gmail.co= m> writes:

> Looks like org-insert-link doesn't have any tab completion feature= to list files on the
> system. How do I get that?
>
> I can tab complete file+sys: but then can't do ~/directory/file.tx= t
>
> Thanks.
>
> On Sun, Mar 16, 2014 at 3:31 PM, Eric Abrahamsen <eric@ericabrahamsen.net> wrote:
>
> =C2=A0 =C2=A0 Chris Henderson <henders254@gmail.com> writes:
>
> =C2=A0 =C2=A0 > Is there any way to quickly add a file's locati= on rather than typing
> =C2=A0 =C2=A0 > the whole file://path/to/location. The files are mo= stly freemind or
> =C2=A0 =C2=A0 > libreoffice calc/ word files.
> =C2=A0 =C2=A0 >
> =C2=A0 =C2=A0 > If the file or the directory is not there, it can a= lso be created
> =C2=A0 =C2=A0 > from within org easily.
> =C2=A0 =C2=A0 >
> =C2=A0 =C2=A0 > Thanks
>
> =C2=A0 =C2=A0 Are these links to files? You can use `org-insert-link&#= 39; with a prefix
> =C2=A0 =C2=A0 argument, to get the usual find-file interface, and a li= nk inserted once
> =C2=A0 =C2=A0 you've found it.

You must have missed the "prefix argument" part of Er= ic's answer: C-u C-c C-l

--
Nick



--001a11c383be34193a04f6d2a3f4--