unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: no completion using anything-find-file
Date: Mon, 25 Jan 2010 22:22:38 +0100	[thread overview]
Message-ID: <87iqapq3q9.fsf@tux.homenetwork> (raw)
In-Reply-To: 86eile9gmm.fsf@gmail.com

Glauber Alex Dias Prado <smade4@gmail.com> writes:

> Daniel Goldin <danielgoldin@gmail.com> writes:
>
>> Started to use anything-find-files per recommendation on this list but
>> am frustrated that I can't do file or dir completion. Is there a way
>> to turn this on? Thanks.
> By completion do you mean in-buffer completion for files?(if so then
> anything-find-file will not work as it is an alternative to
> find-file). Otherwise you can search for pattern on minibuffer, by
> default anything-find-file will be on your home dir ~/ lets suppose you
> want to open a document on ~/Desktop you can type for instance skt on
> minibuffer and ~/Desktop will appear as a candidate, if you hit TAB you
> will be inside your ~/Desktop directory now. lets suppose your document
> is called document.txt, you start typing txt on minibuffer, document.txt
> will appear as one candidate and as soon as you put the anything bar
> over it and hit enter you will open it, i think this explains how it
> should work.

Of which function are you speaking?
anything-find-file ==> come with anything-complete.el
anything-find-files ==> come with anything-config.el

Yes i know it's confusing, i plan to rename anything-find-files.

anything-find-files is not by default on ~/ but on default-directory or
thing-at-point as it use ffap.If you are on a url, a mail adress
etc.. it will do the right thing.

So anything-find-files work like find-file (C-x C-f), but if you use it
with anything-match-plugin.el, you have to add a space and then the next
part of pattern you want to match:

,----
| Example:
| 
| Find Files or url: ~/
| That show all ~/ directory.
| 
| Find Files or url: ~/des
| will show all what begin with "des"
| 
| Find Files or url: ~/ esk
| (Notice the space after ~/) will show all what contain esk.
| 
| Find Files or url: ~/ el$
| Will show all what finish with el
`----

You can move in the anything buffer with C-n C-p or arrow keys, when you
are on a file, you can hit C-z to show only this file-name in the
anything buffer.
On a directory, C-z will switch to this directory to continue searching
in it.
On a symlink C-z will expand to the true name of symlink.(moving your
mouse cursor over a symlink will show the true name of it).

So it is quite easy to navigate in your files with anything-find-files.

If you like it you can safely bind it to C-x C-f to replace the standard
find-file:

(global-set-key (kbd "C-x C-f") 'anything-find-files)

If you want to have similar completion in dired for
copying/renaming/symlinking/hardlinking, use

M-x anything-dired-binding 

That will replace C, R, S, H in Dired by the equivalent with anything
completion.

You will have two action for S: symlink and relsymlink (use tab to
select actions).

Also:
You can enter tramp filename with anything-find-files, 
it will and complete alone.(/su::, /sudo::, /ssh::)

Hope that's clear enough.

-- 
Thierry Volpiatto





  reply	other threads:[~2010-01-25 21:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-25  0:48 no completion using anything-find-file Daniel Goldin
2010-01-25 18:36 ` Glauber Alex Dias Prado
2010-01-25 21:22   ` Thierry Volpiatto [this message]
2010-01-27 22:18     ` Thierry Volpiatto

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87iqapq3q9.fsf@tux.homenetwork \
    --to=thierry.volpiatto@gmail.com \
    --cc=help-gnu-emacs@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.
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).