help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A quick way of opening any file with given extension within a direct


From: Dieter Wilhelm
Subject: Re: A quick way of opening any file with given extension within a directory hierarchy?
Date: Tue, 05 Jun 2007 23:17:40 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux)

no-spam@cua.dk (Kim F. Storm) writes:

> Enselic <enselic@gmail.com> writes:
>
>> Let's clarify with an example. I have the following source tree:
>>
>> root/file.cpp
>> root/gtk/gtk.cpp
>> root/msw/file2.cpp
>>
>> And call (after requred setup is made) func-i-look-for, then type "fi"
>>
>> I would now have file.cpp and file2.cpp listed in the buffer, and C-n
>> <return> would get me to file2.cpp.
>>
>> Does anyone know if there is elisp code that does this somewhere?
>
> Try ido mode.
>
> Not exactly the interface you asked for, but you can do (in root/):
>
>     C-x C-f M-f fi RET
>
> and then select the file you want with <- and ->  (or C-s / C-r)  RET

I also wanted to suggest your ido-mode but Enselic wants to get the
relevant files from a whole directory hierarchy (please have a look
above) and not only from the *current* directory.

-- 
    Best wishes

    H. Dieter Wilhelm
    Darmstadt, Germany




reply via email to

[Prev in Thread] Current Thread [Next in Thread]