From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24930 invoked from network); 13 Dec 2003 23:41:33 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 13 Dec 2003 23:41:33 -0000 Received: (qmail 25359 invoked by alias); 13 Dec 2003 23:41:22 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6884 Received: (qmail 25297 invoked from network); 13 Dec 2003 23:41:22 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 13 Dec 2003 23:41:22 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.238.4.143] by sunsite.dk (MessageWall 1.0.8) with SMTP; 13 Dec 2003 23:41:21 -0000 Received: by elanus.its.uu.se (Postfix, from userid 204) id 85B184ABE; Sun, 14 Dec 2003 00:41:19 +0100 (NFT) Received: from elanus.its.uu.se(127.0.0.1) by elanus.its.uu.se via virus-scan id s20829; Sun, 14 Dec 03 00:40:09 +0100 Received: from localhost (NL04-165-13.STUDENT.UU.SE [10.11.165.13]) by elanus.its.uu.se (Postfix) with ESMTP id 83D2F4963 for ; Sun, 14 Dec 2003 00:40:04 +0100 (NFT) Received: from jesper by localhost with local (Exim 4.24) id 1AVJLl-00022o-3c for zsh-users@sunsite.dk; Sun, 14 Dec 2003 00:39:05 +0100 Date: Sun, 14 Dec 2003 00:39:05 +0100 From: Jesper Holmberg To: Zsh-users List Subject: Re: Completion in pwd before subdirecories Message-ID: <20031213233905.GW18859@strindberg.dsv.su.se> Mail-Followup-To: Zsh-users List References: <20031213154651.GR18859@strindberg.dsv.su.se> <1031213191918.ZM5325@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1031213191918.ZM5325@candle.brasslantern.com> User-Agent: Mutt/1.5.4i * On Sat Dec 13, Bart Schaefer wrote: > On Dec 13, 4:46pm, Jesper Holmberg wrote: > } 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? Yes you're right, it's the 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. I use compsys, with the above-mentioned lines in my .zshrc > 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 I tried this, and I think I understand what it does, but it doesn't make any difference. If I have this: dar dir dor where dir is a directory, typing cat still gives me dar dir dor in that order. Jesper