emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Emacs completion on file:xyz links?
Date: Fri, 26 Apr 2013 10:52:46 +0200	[thread overview]
Message-ID: <20130426085246.GE2769@kuru.dyndns-at-home.com> (raw)
In-Reply-To: <CA++fsGFa_6wDMvqHDOfGjGYtC0ubMujtz-Ey2RcG6Dwpox2THw@mail.gmail.com>

On Fri, Apr 26, 2013 at 10:15:42AM +0300, Dov Grobgeld wrote:
> I often find reference files in org-files and then do the following
> sequence:
> 
> * Press Ctrl-x Ctrl-f
> * Navigate to the requested file by the emacs and completion
> * Press Ctrl-a Ctrl-k to copy
> * Press Ctrl-g to get out of file-open
> * Paste with ctrl-y
> 
> I was wondering if anyone has written code so that pressing [TAB] within a
> file:/ link would do emacs completion in place?

It does that already.  Use C-c C-l to insert a link, when prompted for
the type, say file: RET.  Then you can use the usual emacs completeion
interface to get filename completeion.

What is missing though is completion when editing an existing link.
IMO, that would be a worthy feature request.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.

  reply	other threads:[~2013-04-26  8:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-26  7:15 Emacs completion on file:xyz links? Dov Grobgeld
2013-04-26  8:52 ` Suvayu Ali [this message]
2013-04-26  9:18   ` Dov Grobgeld

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=20130426085246.GE2769@kuru.dyndns-at-home.com \
    --to=fatkasuvayu+linux@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).