From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22757 invoked by alias); 24 Mar 2017 23:14:39 -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: 22610 Received: (qmail 19783 invoked from network); 24 Mar 2017 23:14:39 -0000 X-Qmail-Scanner-Diagnostics: from mail-vk0-f53.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.213.53):SA:0(0.5/5.0):. Processed in 1.243908 secs); 24 Mar 2017 23:14:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_SPAM,SPF_PASS, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.213.53 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject:cc :mime-version; bh=UXKvwE4gwsNdGQs4vdKEbsWzV1KbesW9EDE75l/G6hg=; b=SBNrZdPCMWAkr3sT9lRoITT3vo0GOoztVhd+15Y5hDoYeuoyL9K+s6+NKNqeus2tDR GvaRfI6+Ufbugvj/C29KU1YnepBPTiE1lV6GodSEw3NkIN1Bj56TlTMXdpW0Ok0k5+wk uMpRdjbn4iL0iaGImXmEqb5tL/eWsdE+WsUzRNRzccjZHkLL5FHucxw5jblZr/RVYf/M 1CsAAjRFV6+8mZziIcnmX4l0D60VbgzB50rcliHqzMALI2rHzBGWneebKnVx7vvkkQBQ juHM97ZbviFCKrq7NWBoDv7RY15WbQ6OXY6TMWjqjRdpSXn2BlN+u8l7dJYCpJo939tz 5SWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:cc:mime-version; bh=UXKvwE4gwsNdGQs4vdKEbsWzV1KbesW9EDE75l/G6hg=; b=MYZf32AIHRX8gBuYI1czbE6x9POX4rNjtpG0f2nZZs0JGCVU6cs7m4hRL/f/h3MS4r ky7EPyKBDe7K/gDVNGEv9SvkfRqecaXnDbdkm0qEaCaOgQWwJHyUTcShSmgrrbxP5SAE Cum968BZRcF67l4XZpqUz9RO81CIInWSKl+gJpY5ZE8SOfygRZYZkuoJSqqM7c6myUeg amkkXJ7D+JG10VSIOo6LY+BZ6W7KtcOFXEwlj8Cl/IaHWe/bx93hL5ER4HHn89mmO17B FLsZ1/Y/T/aTVkceSe/kDeGQ8Dq9UN9L29I8rEx+Om/jNXCIpNS76zrJ0y0Ki6FUqQkJ 9qZQ== X-Gm-Message-State: AFeK/H3LFEKoNvo79kmabCI3oHHpL61+DEjUa4qfaPIMkrJ2Alae/Pk3dURui5kiN1EnBQ== X-Received: by 10.159.33.144 with SMTP id 16mr4514317uac.28.1490397270007; Fri, 24 Mar 2017 16:14:30 -0700 (PDT) From: Bart Schaefer Message-Id: <170324161529.ZM12946@torch.brasslantern.com> Date: Fri, 24 Mar 2017 16:15:29 -0700 In-Reply-To: <20170324101838.bqmgq6cabp63jtc6@fishbowl.rw.madduck.net> Comments: In reply to martin f krafft "Re: Making file-patterns and tag-order work" (Mar 24, 11:18am) References: <20170321094917.3aopmzwkpaam7kgl@fishbowl.rw.madduck.net> <170321181534.ZM1895@torch.brasslantern.com> <20170322033504.nodq5vk34ehtwa44@fishbowl.rw.madduck.net> <170322211337.ZM6292@torch.brasslantern.com> <20170324065956.xywzwgwfwo6shsui@fishbowl.rw.madduck.net> <20170324101838.bqmgq6cabp63jtc6@fishbowl.rw.madduck.net> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: martin f krafft Subject: Re: Making file-patterns and tag-order work Cc: Zsh Users MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Mar 24, 11:18am, martin f krafft wrote: } } also sprach Mikael Magnusson [2017-03-24 10:19 +0100]: } > Do you have this set too? } > zstyle ':completion:*' group-name '' } } Yes! } } Now if I uncomment this, then using either form of tag- or } group-order, I get this [...] You obviously have some zstyles you haven't told us about, such as a "format" style. I tried this: zstyle ':completion:*' completer _complete zstyle ':completion:*:argument-rest:' file-patterns \ '*(-/):directories:directories (*.(ba#k|old)|*~):backup-files:"backup files" *.(l#[oa]|py[co]|zwc):compiled-files:"compiled files" *.te#mp:temp-files:"temp files" .*.sw?:vim-swap-files:"vim swap files" %p:globbed-files *:all-files' zstyle ':completion:*' format '** %U%d%u **' zstyle ':completion:*' group-name '' zstyle ':completion:*:argument*' group-order vim-swap-files directories globbed-files files all-files backup-files compiled-files temp-files zstyle ':completion:*:argument-rest:(all|globbed)-files' ignored-patterns \ '((*.(ba#k|old)|*~)|*.(l#[oa]|py[co]|zwc)|*.te#mp|.*.sw?|*(-/))' Note I've deliberately munged your group-oder to move vim-swap-files to the front to make it obvious that something has changed. Also note no quotes around the list of tag names in group-order. With your setopts: torch% setopt interactive nolistambiguous listpacked monitor norcs shinstdin zle I get this: torch% ls ** vim swap files ** .vimbackup.swp ** directories ** 10a/ 19139/ a\ \(test\)/ cat/ dumdmdum/ html/ Tt/ 11a/ 33460/ bar/ dir1/ fooloop@ man/ z/ 18875/ a\'b/ baz/ dir\ two/ home@ nowrite/ ** backup files ** file\~ ** compiled files ** compiled.a ** temp files ** dummytemp.tmp ** files ** (contents of "files" tag omitted for brevity, but it's all the directories plus misc other files). So it sure looks to me as if group-order is working, with the exception of the "files" tag -- but that's because _ls passes *:files:_files explicitly to _arguments, I think.