From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23322 invoked by alias); 30 Jan 2013 15:09:51 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17627 Received: (qmail 28611 invoked from network); 30 Jan 2013 15:09:50 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at m.gmane.org designates 80.91.229.3 as permitted sender) X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Daniel Subject: Re: Re[2]: completing files first Date: Wed, 30 Jan 2013 15:07:39 +0000 (UTC) Message-ID: References: <201301301542110437.01358432@mail.gmx.net> X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c83-249-23-194.bredband.comhem.se User-Agent: slrn/1.0.1 (Linux) On 2013-01-30, Manuel Presnitz wrote: > Honestly, I do not really understand these zstyle stuff, but combining > Jesper's suggestions with my own .zshrc I found by chance, that > > zstyle ':completion:*' file-patterns '*(-/):directories:directories %p(^-/):globbed-files' '*:all-files' > > (note the second word ,directories', wchich is just a label, it could also be > something else) instead of > > zstyle ':completion:*' file-patterns '*(-/):directories %p(^-/):globbed-files' '*:all-files' > > works also with ,less' -- as in your example. Yeah, they are tricky, these zstyles. Thanks, this led me to try, by pure experimentation, this: zstyle ':completion:*' file-patterns '*(-/):directories:directories %p(^-/):globbed-files:files' '*:all-files' zstyle ':completion:*' group-order globbed-files all-files files directories Which actually does what I want... It ditches the particular names that completers give its groups, but at least I get them in the order I want. Works with cat, less and my "myview".