emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Shortcut to file
@ 2014-03-16  3:37 Chris Henderson
  2014-03-16  4:31 ` Eric Abrahamsen
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Henderson @ 2014-03-16  3:37 UTC (permalink / raw)
  To: org-mode

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

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

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Shortcut to file
  2014-03-16  3:37 Shortcut to file Chris Henderson
@ 2014-03-16  4:31 ` Eric Abrahamsen
  2014-04-12  2:09   ` Chris Henderson
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Abrahamsen @ 2014-03-16  4:31 UTC (permalink / raw)
  To: emacs-orgmode

Chris Henderson <henders254@gmail.com> 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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Shortcut to file
  2014-03-16  4:31 ` Eric Abrahamsen
@ 2014-04-12  2:09   ` Chris Henderson
  2014-04-12  3:16     ` Eric Abrahamsen
  2014-04-12  3:58     ` Nick Dokos
  0 siblings, 2 replies; 6+ messages in thread
From: Chris Henderson @ 2014-04-12  2:09 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: org-mode

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

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 <henders254@gmail.com> 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.
>
>
>

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Shortcut to file
  2014-04-12  2:09   ` Chris Henderson
@ 2014-04-12  3:16     ` Eric Abrahamsen
  2014-04-12  3:58     ` Nick Dokos
  1 sibling, 0 replies; 6+ messages in thread
From: Eric Abrahamsen @ 2014-04-12  3:16 UTC (permalink / raw)
  To: emacs-orgmode

Chris Henderson <henders254@gmail.com> 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

Perhaps try playing with the value of org-link-file-path-type?

>
> Thanks.
>
>
> On Sun, Mar 16, 2014 at 3:31 PM, Eric Abrahamsen <
> eric@ericabrahamsen.net> wrote:
>
>     Chris Henderson <henders254@gmail.com> 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.
>    
>    

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Shortcut to file
  2014-04-12  2:09   ` Chris Henderson
  2014-04-12  3:16     ` Eric Abrahamsen
@ 2014-04-12  3:58     ` Nick Dokos
  2014-04-12  6:34       ` Chris Henderson
  1 sibling, 1 reply; 6+ messages in thread
From: Nick Dokos @ 2014-04-12  3:58 UTC (permalink / raw)
  To: emacs-orgmode

Chris Henderson <henders254@gmail.com> 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 <henders254@gmail.com> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Shortcut to file
  2014-04-12  3:58     ` Nick Dokos
@ 2014-04-12  6:34       ` Chris Henderson
  0 siblings, 0 replies; 6+ messages in thread
From: Chris Henderson @ 2014-04-12  6:34 UTC (permalink / raw)
  To: Nick Dokos; +Cc: org-mode

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

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:

> Chris Henderson <henders254@gmail.com> 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 <henders254@gmail.com> 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
>
>
>

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-04-12  6:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-16  3:37 Shortcut to file Chris Henderson
2014-03-16  4:31 ` Eric Abrahamsen
2014-04-12  2:09   ` Chris Henderson
2014-04-12  3:16     ` Eric Abrahamsen
2014-04-12  3:58     ` Nick Dokos
2014-04-12  6:34       ` Chris Henderson

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).