Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: completing files first



On 30 January 2013 15:49, Daniel <quite@xxxxxxxx> wrote:
> On Wed, Jan 30, 2013 at 03:41:20PM +0100, Mikael Magnusson 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.
>
> Oh thanks, one step further... But, no, the following doesn't cut it...
>
> zstyle ':completion:*' group-order file directories

The tag for files is called other-files when list-dirs-first is enabled.

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author