emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-orgmode@gnu.org
Subject: Re: path completion with file: links?
Date: Fri, 09 Jan 2009 10:04:21 +0100	[thread overview]
Message-ID: <87k594x33e.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: <87wsd5plb7.fsf@fastmail.fm>

Matthew Lundin <mdl@imapmail.org> writes:

Hi,

> Dan Davison <davison@stats.ox.ac.uk> writes:
>
>> When creating a file link with C-c C-l, I appreciate that the initial
>> file: specifier is autocompleted for me, but I don't subsequently get
>> autocompletion on path names. Is that supposed to happen, and if not
>> would it be possible / how difficult would it be?
>
> Try adding a prefix argument to C-c C-l. 
>
> C-u C-c C-l should do the trick.

Or as a side-note not relevant to org-mode: With hippie-expand one can
complete path names (and various other things like completing "3 * 2 ="
to " 3 * 2 = 6") in every part of emacs.  Just put

,----[ C-h f try-complete-file-name-partially RET ]
| try-complete-file-name-partially is a compiled Lisp function in
| `hippie-exp.el'.
| 
| (try-complete-file-name-partially old)
| 
| Try to complete text as a file name, as many characters as unique.
| The argument old has to be nil the first call of this function.  It
| returns t if a unique, possibly partial, completion is found, nil
| otherwise.
`----

into `hippie-expand-try-functions-list' and bind `hippie-expand' to some
key.

Bye,
Tassilo

      reply	other threads:[~2009-01-09  9:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-08 20:38 Dan Davison
2009-01-08 20:58 ` Matthew Lundin
2009-01-09  9:04   ` Tassilo Horn [this message]

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=87k594x33e.fsf@thinkpad.tsdh.de \
    --to=tassilo@member.fsf.org \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: path completion with file: links?' \
    /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

Code repositories for project(s) associated with this 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).