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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5216 invoked from network); 8 Nov 2023 20:44:53 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Nov 2023 20:44:53 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1699476293; b=FbA9zPKq8ouyWe8jJQ3p/hFsAF5g6soHpb1h1JEcwZM7+cXfORLqVuUVX9Pod94gJFns5SRrIh ewq87/YbJe/wJ36Cf0POKjYp6nz02v25oehCyevqEhvQTd3BGmMN20YAubGqhMM8ps7/pkoyuk kcs0v/FAlrBP7YOpVk9LuUZuCAcYNWkyygsSOW4XfQte53cGRFIwnnYEH4/jmtA3+fLfpl9lN7 qpU0Zew/hiiD8/v2Hejqz3mQc+vf/xngiw3CcgeGcvPbnv59ShnHbkPa+eI8YHgC4OAmk2khjX n4She062tQebQPc6b+sr81GW4T4W0Hx2u7yT8dISEh+BDg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1699476293; bh=qkybhZXU1bM3uZlbUIfrmFDk3OptlnPO37gQeLlpKyo=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Content-Type:DKIM-Signature; b=P1ptuAmWIlMn4bbUyHvBfmdiFPZ9iBMEm4bPWVjrc2RbkLsf/wmBcT3gYhbyMyYLy0nUeaAdVb cA+tNq9iv7LBLE55kIgoZE4gSDn8kwdbL+ujlGxgnn5h4zsUeT/LDJnujjeW//ImIu7dGu5QHG dR9zmE3ykZ7j6yU+YYgBfQ7btyNENCNaAuDSu5sJyLQHJpn5qeJsG8O0QDertle3zBGNVoC0iG kTetTAPP1KFEbFGWipybvInEFuOitQ92vfX4N8f5rTkY7vord1wM/J1/z7xljg25TdvL5q5jQN JM1D+j9KSazgSj/x9h24x0bV8msJTVBayMFGqRcMEfPbPQ==; 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:In-reply-to:From:References:To: Subject:MIME-version:Date:Message-id:Content-type:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=uh8FhWetXhf4aYscJ7siVGR0aW+ePbjNiAsS/LE9ZiU=; b=QKD1sRuD5dvS3Vx2rVV6YLUemK 8g2isvfnH8sNsPy+N4SG4Z/Ym/hPmuPKDJxkr/UlLiOIM2fYoFPaMiDptNNQxayQod1uB5TBlKPDi 55FmNIG4XRsdh0TpLbtUVD/Bbc9hIDgEGN2isekw0Pt45xUl8G8sM+s8xXDlVSneCan7GnONgDNe7 GoKZPt3fDf3uKy3bDkneMivg3N308eSyh9caGWJ+YVQCIwLciwXozZwiop/YQGJ9fjEq8FdFJy5lJ Vzk/97Zo9ozEFN8nOb44fsHGcuRHNmWjnW/7OoFXs4VufJ70XcQBHsbT0RgJs9KsPtaLGgouI1YM0 3lN59k0g==; Received: by zero.zsh.org with local id 1r0pPw-000CPM-BB; Wed, 08 Nov 2023 20:44:52 +0000 Authentication-Results: zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; dmarc=none header.from=eastlink.ca; arc=none Received: from mta02.eastlink.ca ([24.224.136.13]:45213) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1r0pPK-000Bia-Bw; Wed, 08 Nov 2023 20:44:15 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta02.eastlink.ca ([24.224.136.13]) with ESMTPS id <0S3T0XCDQO8V0GR0@mta02.eastlink.ca> for zsh-users@zsh.org; Wed, 08 Nov 2023 16:44:13 -0400 (AST) Received: from [192.168.0.4] (host-24-207-18-108.public.eastlink.ca [24.207.18.108]) by csp02.eastlink.ca ([71.7.199.167]) with ESMTPSA id 0pPIrF8cLUnmA0pPIrf6Xs (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Wed, 08 Nov 2023 16:44:13 -0400 X-Authority-Analysis: v=2.4 cv=SNWEFsjH c=1 sm=1 tr=0 ts=654bf31d a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=ZoLaFv8pIAQ7svc_EvQA:9 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=5g1udWAv8ofQoVCxpwMA:9 a=_W_S_7VecoQA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudduledgudefkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpegtkfffgggfuffvfhfhjgesrgdtreertddvjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhephfettefhveeguedvleeggfdvvedufeeuudffvdfgledvvdfgtdeigeeuueelieefnecukfhppedvgedrvddtjedrudekrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrddukedruddtkedphhgvlhhopegludelvddrudeikedrtddrgegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------rZQxNQdZ09IuYL0Hp384UZ8K" Message-id: <12faf9bd-a600-4bd8-b90b-4a262158045f@eastlink.ca> Date: Wed, 8 Nov 2023 12:44:12 -0800 MIME-version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: completion, sorting of options Content-language: en-US To: zsh-users@zsh.org References: <3focki1mdsq59ji5d0u5nb7qenu6u8brkt@tlc.com> From: Ray Andrews In-reply-to: X-Seq: 29328 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: This is a multi-part message in MIME format. --------------rZQxNQdZ09IuYL0Hp384UZ8K Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2023-11-08 12:09, Bart Schaefer wrote: > Not likely to happen as it would mean a significant change to the deep > guts of _arguments. > Purely theoretically, is this the sort of thing where a hook might be  used?  I have only the most cursory understanding of hooks, but my minimal exposure to the idea leads me to think that zsh lets you sorta grab some output -- hook it -- and redirect it to some custom code which would do whatever one might want.  Or, in the spirit of precmd() it's very cool that one can very easily add any sort of code one wants in there. --------------rZQxNQdZ09IuYL0Hp384UZ8K Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


On 2023-11-08 12:09, Bart Schaefer wrote:
Not likely to happen as it would mean a significant change to the deep
guts of _arguments.

Purely theoretically, is this the sort of thing where a hook might be  used?  I have only the most cursory understanding of hooks, but my minimal exposure to the idea leads me to think that zsh lets you sorta grab some output -- hook it -- and redirect it to some custom code which would do whatever one might want.  Or, in the spirit of precmd() it's very cool that one can very easily add any sort of code one wants in there. 
--------------rZQxNQdZ09IuYL0Hp384UZ8K--