From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: econfreerider Newsgroups: gmane.emacs.help Subject: RE: find certain files Date: Tue, 12 Jun 2007 13:37:41 -0700 (PDT) Message-ID: <11086554.post@talk.nabble.com> References: <11084030.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1181680691 5301 80.91.229.12 (12 Jun 2007 20:38:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2007 20:38:11 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 12 22:38:08 2007 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 1HyD7p-0006bq-W5 for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jun 2007 22:38:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyD7p-0005kQ-8f for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jun 2007 16:38:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyD7b-0005kL-3W for help-gnu-emacs@gnu.org; Tue, 12 Jun 2007 16:37:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyD7X-0005k9-Kg for Help-gnu-emacs@gnu.org; Tue, 12 Jun 2007 16:37:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyD7X-0005k6-DF for Help-gnu-emacs@gnu.org; Tue, 12 Jun 2007 16:37:43 -0400 Original-Received: from kuber.nabble.com ([216.139.236.158]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyD7X-0004HO-0U for Help-gnu-emacs@gnu.org; Tue, 12 Jun 2007 16:37:43 -0400 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1HyD7V-0003gd-TZ for Help-gnu-emacs@gnu.org; Tue, 12 Jun 2007 13:37:41 -0700 In-Reply-To: X-Nabble-From: econfreerider@gmail.com X-detected-kernel: 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:44973 Archived-At: Hi Drew, Thanks a lot for the suggestions. I had a hard time using S-TAB: do I need to install Icicles? Thanks again. Drew Adams wrote: > >> I use Ctrl-f to find files in a directory, but...I want to >> limit it to certain files...for example, only sas files, *.sas. >> If if do Ctrl-f /projects/a/*.sas, it will open all the sas files. >> I want to do Ctrl-f /projects/a/, and only display .sas files, >> so I can choose one. How do I do that? > > Use Icicles apropos completion: > > C-x C-f \.sas$ S-TAB, if the current directory is /projects/a, or > > C-x C-f /projects/a/.*\.sas$ S-TAB, otherwise. > > You match the file extension using the regular expression `\.sas$'. You > need > to escape the `.' preceding the `sas' file-extension with a backslash, or > else it will match any character (except a newline) - as in the `.*', > which > matches any character any number of times. The `$' matches the end of the > file name. > > When the list of matching file-name candidates is displayed, click > `mouse-2' > on the one you want. If you want to open multiple files, click `C-mouse-2' > on each one you want. > > You can also cycle through the matching candidates with the `next' key, > and > use `RET' to choose the current one (or `C-RET' to choose more than one). > You can also type a more specific match pattern, to match only certain SAS > files. > > For example, `C-x C-f foo.*bar\.sas$ S-TAB' matches file names that start > with `foo', contain also `bar', and end with `.sas'. > > You can also save a set of completions - for example, if you often use the > same set of project files. Just use `C-M->' to save the current matches in > a > variable, or `C-u C-M->' to save them persistently in a cache file. Later, > when you want to retrieve them for completion with `C-x C-f', use `C-M-<' > (retrieve from a variable) or `C-u C-M-<' (retrieve from a cache file). > You > are prompted for the cache file name. You can have any number of variables > or files that hold completion sets. > > http://www.emacswiki.org/cgi-bin/wiki/Icicles: doc > > http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Apropos_Completions: about > apropos completion > > > > > > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs > > -- View this message in context: http://www.nabble.com/find-certain-files-tf3909138.html#a11086554 Sent from the Emacs - Help mailing list archive at Nabble.com.