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

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

Re: finding files not visited


From: Suvayu Ali
Subject: Re: finding files not visited
Date: Thu, 15 Sep 2011 00:15:20 +0200

Hi Andrea and Jeffrey,

On Thu, 15 Sep 2011 06:50:04 +1000
Jeffrey Spencer <address@hidden> wrote:

> On 15/09/11 02:34, Andrea Crotti wrote:
> > On 09/14/2011 04:27 PM, suvayu ali wrote:
> >> Try ido-mode for files. But a word of caution, if any of the
> >> directories have too many (~100s) files or sub-directories and are
> >> remote (as in you are remote editing with tramp) emacs might become
> >> extremely slow trying to find completions.
> >
> > I already use ido-mode, but it doesn't recurse in the
> > subdirectories (at least not by default).
> >
> > I don't see any variable to customize for that, am I blind?
> >
> > I like the dired solution, and for example I can set up some 
> > dir-local-variable setting the right switches, for example it's a
> > good idea to filter hidden directories (like .git or .bzr).
> >
> > I'll give finally a try also to anything
> >
> 
> I use ido-mode also and was wondering how to do this. It seems to not 
> search through sub-directories. Is it redefining a function or is it 
> already implemented and just needs enabled.
> 

Sorry I wasn't explicit, ido-mode completes on the full path rather
than the filename. So if you have 4 files like these:

/path/dir/file1
/path/dir/file2
/path/dir/sub-dir1/file3
/path/dir/sub-dir2/file4

To complete for file3 and file4 you would need to type up to 's' of the
subdirectories sub-dir1 and sub-dir2. As you type up to sub-dir1, only
file3 will be offered as a completion candidate.

That said, I have a hunch you might be able to write some custom
function, to do that with uniquify and ido. However this is just a
conjecture, I haven't tried it.

From a quick search it seemed the following link might help too:
<http://www.emacswiki.org/emacs/InteractivelyDoThings#toc12>

> Cheers
> 

Hope this was helpful.

-- 
Suvayu

Open source is the future. It sets us free.



reply via email to

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