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: Mon, 25 Jan 2010 22:22:38 +0100 Organization: ThierryVolpiatto Message-ID: <87iqapq3q9.fsf@tux.homenetwork> References: <20100125004854.GA3401@danielgoldin> <86eile9gmm.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1264454947 14573 80.91.229.12 (25 Jan 2010 21:29:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Jan 2010 21:29:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 25 22:29:00 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.50) id 1NZWUR-0003Rl-Qc for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Jan 2010 22:28:56 +0100 Original-Received: from localhost ([127.0.0.1]:41438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZWUS-0002KW-Pa for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Jan 2010 16:28:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NZWTw-0002Gj-UW for help-gnu-emacs@gnu.org; Mon, 25 Jan 2010 16:28:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NZWTs-00029O-4F for help-gnu-emacs@gnu.org; Mon, 25 Jan 2010 16:28:24 -0500 Original-Received: from [199.232.76.173] (port=55622 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZWTr-000295-MP for help-gnu-emacs@gnu.org; Mon, 25 Jan 2010 16:28:19 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:32953) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NZWTq-0006j1-0P for help-gnu-emacs@gnu.org; Mon, 25 Jan 2010 16:28:19 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NZWTQ-0002iN-FB for help-gnu-emacs@gnu.org; Mon, 25 Jan 2010 22:27:52 +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 ; Mon, 25 Jan 2010 22:27:52 +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 ; Mon, 25 Jan 2010 22:27:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 83 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:Cu1n8ubzRkNGFUEPexc/AhocZhU= 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:71455 Archived-At: 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. 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