Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completing files first
- X-seq: zsh-users 17622
- From: Jesper Nygårds <jesper.nygards@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: completing files first
- Date: Wed, 30 Jan 2013 11:16:16 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=tzKAGqS5UQHPNkNruvTpIKXc5s1guaHSux/fppWkub0=; b=omB1Ourew840KzPZxl1meWYaocQyHLXvcngCq7VjGp+ADq7Gr/OE3BUQOtnLl9TX4V cvrC4ogTFrkTe8ldwcU6kJRgC4EhPz5i9ruNJzc1mVogcVJ7lmgnVtSk4vmB/DM8avzg O10AfP0eeVe24lftWyjbnObRp3kgtieffQr9w55AhvwqyhSdwMeuJcHbV6vfoDLZkJen MmmaT8D05wIW2H3I9D/pPPBjDix3xPPKihoPApElxaeUZQ+iwP0YRv3HLCvAca4eYfNB qaaNddbCf8GAuwoerM1/4fb8Dkqf7nSvQUAhJSc592nRIbs3tbkkj3bBbPaaklmBP7E3 Q+ng==
- In-reply-to: <ke9202$tmj$1@ger.gmane.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <ke9202$tmj$1@ger.gmane.org>
Are you using menu-completion? I do, and use this which works well for me:
zstyle ':completion:*' file-patterns '*(-/):directories
%p(^-/):globbed-files' '*:all-files'
zstyle ':completion:*' group-order globbed-files all-files directories
On Tue, Jan 29, 2013 at 6:47 PM, 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"?
>
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author