emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: [PATCH] another possible behavior for ido-enter-matching-directory


From: Kim F. Storm
Subject: Re: [PATCH] another possible behavior for ido-enter-matching-directory
Date: Tue, 22 Aug 2006 14:42:38 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Matthieu Moy" <address@hidden> writes:

> Hi,
>
> We had a discussion a few months ago about the behavior of ido when
> one types a slash.
>
> I'm still not satisfied by the current bevavior. In particular, I
> often have directories like:
>
> ./XXX/
> ./XXX-aaa/
> ./XXX-bbb/
> ./XXX-ccc/
>
> Then, at the prompt, I get
>
> ./XXX/{XXX-aaa,XXX-bbb,XXX-ccc,XXX}
>
> and I have no "fast" way to open XXX itself, while it would have been
> trivial to open it without ido.

I have just installed a change so that when there is an exact
match, ido puts it first in the list, so you can easily select it
with RET:

> ./XXX/{XXX,XXX-aaa,XXX-bbb,XXX-ccc}

As an added bonus, ido now does suffix-matching on directories, so
to select XXX/ above, all you need to enter now is  X/ as that's
the only directory ending in an X.  You can select the other
directories with a/, b/ and c/.

> I propose a new possible value for ido-enter-matching-directory, which
> enters the directory when there is an exact match, whether or not it's
> the first. 

With the above change 'first ==> 'exact.

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

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