Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completing files first
On 2013-01-30, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> On 29/01/2013, Daniel <quite@xxxxxxxx> wrote:
>> When completing files in the current directory, I generally want it to
>> pick actual files first (and not directories). I am normally in the
>> directory where I want to work on a file, so when I do "qiv<TAB>" or
>> "qiv foo<TAB>" to view some image, I want the files first, and secondly
>> directories. I knew about group-order, but there seems to be only on
>> group "files"?
>
> zstyle ':completion:*' list-dirs-first true
> then you can probably change the order of these with group-order if you want.
This did list directories first, but "group-order file directories" did
not work to order the groups. Perhaps I'm not catching the correct group
with "file"--but that's what I see as the name in the competion menu,
and I do have "group-name ''".
Messages sorted by:
Reverse Date,
Date,
Thread,
Author