From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30536 invoked from network); 5 Nov 2023 15:03:40 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 5 Nov 2023 15:03:40 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1699196620; b=qCGKtzSXIat3qof9Q0QjBMUXy+zomIBsfeeLrdRqM5v9IES70WRpfvPbZHoLN+yoh2DHMnd4I6 3BVcQh4tM4eJBL0T2GJ1QLCxv699I3MJDMpgwWwFNmfrqVeMjyhjnzyOPCGG3DI8tScpLcSlvw TI6EL7FTRs1kiv3BV87r6iFhj5UVBo7Q/ipUe2xPceRCPAFX3mxmAieMJSc2R0s72ycAcF2/0X KlpEVUfhCkds0FtWpsHb8EtsPIyazdNICtwHVZZ2H18plW/7CvRvUAWjUhUlOCWa05WBchhVJL 3mOnXIT3rX+Q2qBuQV1v2JRJaSRP5YGG+GcUQV3wWwzS1w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (csmtpq4-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.41; dkim=pass header.d=virgin.net header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=virgin.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1699196620; bh=TlmYzfMFU1freyvKSamaCY3nwxvXd1nY3dmicJn1/nI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version: In-Reply-To:References:Message-ID:Date:Subject:Cc:To:From:DKIM-Signature: DKIM-Signature; b=EKaZLYpl0rgLDnfyQtkgHGhfOgTTnY3zW7LwLqT5hFmKmnUSWmmc4y41XeH1shiHB/qTT9cGiY 3MpMbWNz2rCKlZs/5hCiL4JA0rkZLFEC/W3jp7RxXlKUmkeg0txCIvTFTLWw/8v6o2q0pIBT00 YTlj6FylCSbVs+5OnRtjRNIfD4GT6xmdzCUyAX4IVj3njxwN1ZO/qaQXTVQcBVXveK4GcsoU5n F5pnbogiJTvswHT3yfq/ARk3R6Lost3hYyOHIQLN6c7PQnboAlmE5liVfEn34SSveOxSPd8cZl w5WFiDz79j+VIZPyLZ/E1kH58mevWjuO/RZv07N7huc+5A==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:In-Reply-To:References:Message-ID:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=2eMotFozRMqo0xg/qn5r7F/2WxLKDPYow6z4Mgd7Nvs=; b=pMeLqoVqc1+czeqkQuAgszWtEN DezzY4dtK+2SJxaftMRxCawDCJhyRnxMd4j8ycfSyXjNGAwJNPr/tNZa1wKSH+3qXTEfhcbhrwBzf WszSZcYNt9CzQt5iKIYzvsGchvbPORaIQ3wLHt/9rjr/amjgwhiScwhr7qQMDFiSmP2c2fprMbeax 8YJ7AtcONr/RMqNWlTko82Kvy67LbDmqhUz+JJd/qPh14Nj2vq4J3wDaPndvh0KJY3yGyBAikcNMF 3Ylf3SmDF4yWfGhI9H+Vg+PcWY+pdzaPHxyCUd7BXrkSX3HeRwlp5sNbBAUaCsI4ULvc/2swmnbeC OwqOCGQw==; Received: by zero.zsh.org with local id 1qzef5-000FCK-Qj; Sun, 05 Nov 2023 15:03:39 +0000 Authentication-Results: zsh.org; iprev=pass (csmtpq4-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.41; dkim=pass header.d=virgin.net header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=virgin.net; arc=none Received: from csmtpq4-prd-nl1-vmo.edge.unified.services ([84.116.50.41]:16173) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1qzeeQ-000EXW-0L; Sun, 05 Nov 2023 15:02:59 +0000 Received: from csmtp4-prd-nl1-vmo.nl1.unified.services ([100.107.82.18] helo=csmtp4-prd-nl1-vmo.edge.unified.services) by csmtpq4-prd-nl1-vmo.edge.unified.services with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1qzeeO-000IR9-VL for zsh-users@zsh.org; Sun, 05 Nov 2023 16:02:56 +0100 Received: from vCholatse.rt ([80.42.142.8]) by csmtp4-prd-nl1-vmo.edge.unified.services with ESMTPA id zeeOqiePoMs9UzeeOqds8F; Sun, 05 Nov 2023 16:02:56 +0100 X-SourceIP: 80.42.142.8 X-Authenticated-Sender: thomas.lauer@virgin.net X-Spam: 0 X-Authority: v=2.4 cv=Jdd672GV c=1 sm=1 tr=0 ts=6547aea0 cx=a_exe a=tTd6LM87oUkmjIg/HrS6tQ==:117 a=tTd6LM87oUkmjIg/HrS6tQ==:17 a=kj9zAlcOel0A:10 a=BNY50KLci1gA:10 a=pGLkceISAAAA:8 a=8RloEfZUAAAA:8 a=G1tJezHWafZ8lCHV69QA:9 a=CjuIK1q_8ugA:10 a=ea-aaFCQWd8KpuIyLtRc:22 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virgin.net; s=meg.feb2017; t=1699196576; bh=2eMotFozRMqo0xg/qn5r7F/2WxLKDPYow6z4Mgd7Nvs=; h=From:To:Cc:Subject:Date:References:In-Reply-To; b=X6EBurFoomB8DLKfgHF70Hru+jVw9ZpN3vXtppvRzeb/T5IPpfSNy9uxVdFwiBPWq 9XM0H6oM/RyK3l2q1hoeCpEx4TU2sNtEFX7DNEE8i9x4/DnQRs2kX+yYbZ7PgJKdRJ 4Ea0uMgMm9b2ZkcIWBPWeJ4MfN6vTO1+3PJtQdemKZP4Em/EGc6mUUn/mLtAkRncl7 rWTsuDcjEmV/gvnoFInB0AJu4gcAWnvTIUe/1gN+DnYhr5HwV7WHNW4abSoCBBY7KL 4J89JPcByJmFUMJGXOB+un8HHeQwo4iypNXyIQy2Ys1fuAF0TX4jLu5lrF7AGQt7Dw xde1bSQrV3t2w== From: Thomas Lauer To: Mikael Magnusson Cc: Zsh Users Subject: Re: completion, sorting of options Date: Sun, 05 Nov 2023 15:02:56 +0000 Organization: TL Message-ID: <44bfkip060tjc4j7fsfknfjcmpdkbhf871@tlc.com> References: <3focki1mdsq59ji5d0u5nb7qenu6u8brkt@tlc.com> In-Reply-To: User-Agent: ForteAgent/7.00.32.1200 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-CMAE-Envelope: MS4xfMul8og6Rm4YiXBgijnbJoXiFs2X2I89Ud8/hoEJhIlp3D1qauepUkTkRa58EogXVQGzi12oaFobmU+/QlqWCwtBZvEWcKr9Uxu6TEJzEVrEylLJiLXe RswsQ49ZrDalCys1LWvJcYmGqCqNp6uMstKTzug2uJg+iDsP3HnSYzFbEcH0dwB55bzMgrJUa/jpz2MuWuqmXZHgDFmHaLWDBkQ= X-Seq: 29323 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: =46rom: Mikael Magnusson Date: Sat, 4 Nov 2023 16:49:25 +0100 > On 11/4/23, Thomas Lauer wrote: > > So I'm writing my first completion file (gory thing, just the right > > thing for a rainy Sat afternoon). The completion file itself is more = or > > less working, but I've run into trouble with the options display = after > > "-". > > > > Basically what I want to achieve is that the options are listed in > > precisely the order given in the completion file (there are many = options > > and some are much more probable to be used than others, so I want = these > > at the top (I know that further typing will limit the shown = completions > > but not all people using this will be up to that... a simple up/down > > might work better for some)). >=20 > If you give -V foo it will create an unsorted group, but it is a bit > unconventional to do this for sorting regular options by usage. You > could also consider adding the common options with a -J common and the > other ones with a -J rare, or something to that effect. Thanks, Mikael. Alas, I am not going to pretend that I understand what you've written. As I wrote > first completion file and I threw together (w/ some help from big G) something that works (ie it lists the options on -, completes two directories and adds a final command as to what to do). The options are the problem as there are many and for the reasons given I'd like to list them in a specific order. Anyway, my naive interpretation of the "sort false" bit in the zstyle is that sort is false, ie no sorting is done ("sort nosort" seems equally clear but doesn't not sort). Apparently I could try to do something about that but I've not really understood what. Could you please elaborate? Again thanks T