unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* find files in emacs
@ 2006-05-20 17:08 Pedro Sa da Costa
  2006-05-20 17:30 ` Drew Adams
  0 siblings, 1 reply; 4+ messages in thread
From: Pedro Sa da Costa @ 2006-05-20 17:08 UTC (permalink / raw)


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?

Thanks,
Pedro

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: find files in emacs
  2006-05-20 17:08 find files in emacs Pedro Sa da Costa
@ 2006-05-20 17:30 ` Drew Adams
  2006-05-20 18:20   ` Pierre Mallard
  0 siblings, 1 reply; 4+ messages in thread
From: Drew Adams @ 2006-05-20 17:30 UTC (permalink / raw)


    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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: find files in emacs
  2006-05-20 17:30 ` Drew Adams
@ 2006-05-20 18:20   ` Pierre Mallard
  2006-05-20 18:49     ` Drew Adams
  0 siblings, 1 reply; 4+ messages in thread
From: Pierre Mallard @ 2006-05-20 18:20 UTC (permalink / raw)
  Cc: help-gnu-emacs


[-- Attachment #1.1: Type: text/plain, Size: 1975 bytes --]

Well maybe a find-dired or find-grep-dired is enough for him ?

On 5/20/06, Drew Adams <drew.adams@oracle.com> wrote:
>
>     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.
>
>
>
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>

[-- Attachment #1.2: Type: text/html, Size: 2710 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: find files in emacs
  2006-05-20 18:20   ` Pierre Mallard
@ 2006-05-20 18:49     ` Drew Adams
  0 siblings, 0 replies; 4+ messages in thread
From: Drew Adams @ 2006-05-20 18:49 UTC (permalink / raw)


   Well maybe a find-dired or find-grep-dired is enough for him ?

Sure, maybe. Maybe `ls - R' is "enough", or plain `find'. Hard to tell. It
all depends on what he wants to do, and how often he wants to do it.

That's why I (too) mentioned the Emacs `find*' commands, as well as the
general Wiki page on different ways to locate files (including `find-dired'
etc.):

 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.

That Wiki page is a good place to start, no matter what he really wants to
do wrt locating a file.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-05-20 18:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-20 17:08 find files in emacs Pedro Sa da Costa
2006-05-20 17:30 ` Drew Adams
2006-05-20 18:20   ` Pierre Mallard
2006-05-20 18:49     ` Drew Adams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).