From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27870 invoked from network); 13 Dec 2003 19:19:32 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 13 Dec 2003 19:19:32 -0000 Received: (qmail 577 invoked by alias); 13 Dec 2003 19:19:21 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6881 Received: (qmail 520 invoked from network); 13 Dec 2003 19:19:21 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 13 Dec 2003 19:19:21 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.11.8.53] by sunsite.dk (MessageWall 1.0.8) with SMTP; 13 Dec 2003 19:19:20 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id hBDJJJ605326 for zsh-users@sunsite.dk; Sat, 13 Dec 2003 11:19:19 -0800 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to schaefer@closedmail.com using -f From: Bart Schaefer Message-Id: <1031213191918.ZM5325@candle.brasslantern.com> Date: Sat, 13 Dec 2003 19:19:18 +0000 In-Reply-To: <20031213154651.GR18859@strindberg.dsv.su.se> Comments: In reply to Jesper Holmberg "Completion in pwd before subdirecories" (Dec 13, 4:46pm) References: <20031213154651.GR18859@strindberg.dsv.su.se> X-Mailer: Z-Mail (5.0.0 30July97) To: Zsh-users List Subject: Re: Completion in pwd before subdirecories MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Dec 13, 4:46pm, Jesper Holmberg wrote: } } In any case, suppose I have these files in a directory: } } dota1.pdf dota2.pdf dir } } where dir is a directory. } } If I now type xpdf d, zsh will suggest dir as the first completion. Are you sure this isn't happening just because zsh presents the menu in alphabetical order? } I would prefer it if it tried it with any file matching in the current } directory, before going into the sub directories. I would thus rather see } dota1.pdf and dota2.pdf suggested before dir, in my example. } } Is this possible? It depends on wheher you're using compsys or compctl. Does your .zshrc (or the /etc/z* files, I'm not familiar with Debian) contain autoload -U compinit compinit ?? If not, you have almost no control over the sorting order. If you are using compsys, then the group-order style is probably what you want: zstyle ':completion:*' group-name '' zstyle ':completion:*' group-order files directories Read "man zshcompsys" for descriptions of group-name and group-order.