From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: no completion using anything-find-file Date: Wed, 27 Jan 2010 23:18:28 +0100 Organization: ThierryVolpiatto Message-ID: <87iqanry2z.fsf@tux.homenetwork> References: <20100125004854.GA3401@danielgoldin> <86eile9gmm.fsf@gmail.com> <87iqapq3q9.fsf@tux.homenetwork> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1264631902 24773 80.91.229.12 (27 Jan 2010 22:38:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Jan 2010 22:38:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 27 23:38:19 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NaGWa-0008Tt-3C for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jan 2010 23:38:12 +0100 Original-Received: from localhost ([127.0.0.1]:36592 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NaGWZ-0003Kq-Ik for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jan 2010 17:38:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NaGIb-0000i4-GE for help-gnu-emacs@gnu.org; Wed, 27 Jan 2010 17:23:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NaGIW-0000e2-EU for help-gnu-emacs@gnu.org; Wed, 27 Jan 2010 17:23:44 -0500 Original-Received: from [199.232.76.173] (port=49420 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NaGIW-0000dm-6z for help-gnu-emacs@gnu.org; Wed, 27 Jan 2010 17:23:40 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:54997) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NaGIV-0006p0-NY for help-gnu-emacs@gnu.org; Wed, 27 Jan 2010 17:23:40 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NaGIU-0006ei-7E for help-gnu-emacs@gnu.org; Wed, 27 Jan 2010 23:23:38 +0100 Original-Received: from 134.77.197-77.rev.gaoland.net ([77.197.77.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Jan 2010 23:23:38 +0100 Original-Received: from thierry.volpiatto by 134.77.197-77.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Jan 2010 23:23:38 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 90 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 134.77.197-77.rev.gaoland.net Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUHBARgJRFPS0WbMBTC TSG/uJs0yyVHAAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAwAAAAMADO7oxXAAABpUlE QVQ4y3VTQXKDMAyUnD7AwvQOhtxj5N4LFh9ow/+/UtlpM0BczWSS0Wola7UBeEb3+3kJ/5p9ZLz3 UI0n0J0Y4K/lh1nG24FhlJOR2LdSKtpV5gfi/Zd+NdaJBbB4D5N0JnfUIVp6obZURkJwS2a8b9uX AkgxA5gCEcknAH1s2z0DPooWmjGKcJR+HNZt+9bm0GtGRycRuZGs98Ffr02vABWGopIAhmXmxnQN BwBXZjgFLHRoqbfeYxCLWqsjLyKhbEHW+A5nEs699Q2O80ALrgHTmUTy6P0MnKyKQpKHpoNWokxs F0D5VegvWmEozyE6nuMiS98mWzlUQ9bW8qYfqOaFtzWlYCqGeIs6HEyl08jkrxUG9MF5ipXpOOpd ZMoXPPVSLWJiiwNNB+eRSyxJZmQKcacikgucnCRiHuJOLmyYJRDPwOqAvY4pA+Wy+VS8G26BAsdb Ph2Hw7ORy/H0IOG0TnaM8Cp0XrFYyU0v2z8AqkifPVbLZ0qo/gsRg60C7p+8Ov9jrUIxFde+jnAq X42hyp/c+ZcnVyUYBarrqZt3+R8450png3cWKgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAwOC0wNS0z MVQyMjoxNDoyMiswMjowMK3VBDcAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMDctMTAtMjhUMTc6MDg6 NDgrMDE6MDDLdIcLAAAAEXRFWHRqcGVnOmNvbG9yc3BhY2UAMix1VZ8AAAAgdEVYdGpwZWc6c2Ft cGxpbmctZmFjdG9yADJ4MiwxeDEsMXgxSfqmtAAAAABJRU5ErkJggg== User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.91 (gnu/linux) Cancel-Lock: sha1:uUdXfFJInsjVsLXumlv0HuurGHk= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71523 Archived-At: Thierry Volpiatto writes: > Glauber Alex Dias Prado writes: > >> Daniel Goldin 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. Forget to mention C-. that go to root of current dir or to precedent level of dir. So for example you can hit C-z and then come back immediatly where you were with C-. instead of erasing minibuffer input with DEL. > 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