From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: find files in emacs Date: Sat, 20 May 2006 10:30:15 -0700 Message-ID: References: <446F4D17.1020603@mail.telepac.pt> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1148146246 13164 80.91.229.2 (20 May 2006 17:30:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 20 May 2006 17:30:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 20 19:30:40 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FhVHg-0006xL-Ic for geh-help-gnu-emacs@m.gmane.org; Sat, 20 May 2006 19:30:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FhVHg-0003Jy-1F for geh-help-gnu-emacs@m.gmane.org; Sat, 20 May 2006 13:30:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FhVHR-0003JL-D1 for help-gnu-emacs@gnu.org; Sat, 20 May 2006 13:30:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FhVHO-0003It-Ln for help-gnu-emacs@gnu.org; Sat, 20 May 2006 13:30:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FhVHO-0003Iq-Iq for help-gnu-emacs@gnu.org; Sat, 20 May 2006 13:30:18 -0400 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1FhVKy-0006u2-M0 for help-gnu-emacs@gnu.org; Sat, 20 May 2006 13:34:00 -0400 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.186.50]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k4KHUGE0021275 for ; Sat, 20 May 2006 12:30:17 -0500 Original-Received: from dradamslap (dhcp-amer-csvpn-gw1-141-144-64-38.vpn.oracle.com [141.144.64.38]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k4KHUFX4027516 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Sat, 20 May 2006 11:30:16 -0600 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <446F4D17.1020603@mail.telepac.pt> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE 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:35170 Archived-At: I've a big java project that i'm doing in emacs with jdee and ecb. I want to find a file that exists somewhere inside the project. Is there any quick way to do it? What do you know about the file - the name? part of the name? the directory name (path)? part of the directory name? You can use command `icicle-locate-file' to find (visit) any file on your file system. It lets you use a regexp to match any parts of the file name, including any parts of its path. It's in Icicles: http://www.emacswiki.org/cgi-bin/wiki/Icicles and is described here: http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_File-Name_Input. The Icicles libraries are here: http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Libraries. Just download the libraries, byte-compile them, put them in your `load-path', `M-x load-library icicles', `M-x icy-mode', `M-x C-u icicle-locate-file' and type the root directory of your search. You can then type a regexp that matches what you know about the file name and its path. You can change the regexp input on the fly and see the resulting hits updated incrementally in buffer *Completions*, if you like. If you do this often and you are searching a large file system, you can use a persistent cache to speed things up after the first time - see the doc. There are other packages that also let you locate files, in different ways. See http://www.emacswiki.org/cgi-bin/wiki/LocateFilesAnywhere. And you can of course use the various forms of the Unix or GNU/Linux `find' command that are available in Emacs - see the Emacs manual for that.