all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: find files in emacs
Date: Sat, 20 May 2006 10:30:15 -0700	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICIEGFDGAA.drew.adams@oracle.com> (raw)
In-Reply-To: <446F4D17.1020603@mail.telepac.pt>

    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.

  reply	other threads:[~2006-05-20 17:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-20 17:08 find files in emacs Pedro Sa da Costa
2006-05-20 17:30 ` Drew Adams [this message]
2006-05-20 18:20   ` Pierre Mallard
2006-05-20 18:49     ` Drew Adams

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

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

  git send-email \
    --in-reply-to=DNEMKBNJBGPAOPIJOOICIEGFDGAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.