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, FREEMAIL_FROM,MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 10086 invoked from network); 26 Jan 2022 22:06:49 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 Jan 2022 22:06:49 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1643234809; b=jm5qcmXQtvB4k5kvXalANT/saZflqWYNR2Kz3k+Eqpr5TTlqTDK+jc+wDDLZVUop6vxu/avhTP Cw7CbzjgVrAejK3Tv3Af8llg0VCz99RmrnLL551XRVHruxCIS2FdJYuN03mm8THIHyTT+4zh+t zfGhDVuEAImeF4fMfgXBcVV1ogAGEbXN1NkT4mAUSqDY6pHya2jLaLQh5/qUknFQjqBVa001YR NUIBsXc4QOCnqg3kecuiftA4bQyon9fuLELV8SPu0tNG+tXlY4w5H/KNIarvMjeKm55EWYU1h8 pCxJitUCaCPVejILyYildmqveejanK38lMUGaL+D6PuRaQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mout.gmx.net) smtp.remote-ip=212.227.17.21; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.a=rsa-sha256; dmarc=none header.from=gmx.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1643234809; bh=vU57SSv/BT9fDyFnzoQ86MnePxkvfl8nbyAWp72T5Jc=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature: DKIM-Signature; b=GcscZSL7Ci+KBIcpFIpAyXz42JtmRG/0RXxqxGpBOu4dHqdtI+4P1yE7qFTWE82gJfhrY/PoR8 2+s9QaiEBf6MRt4ETEkGr0ZbhkToFmwy7zKbjKhcmIBnSHzmpZ1NV5ootfwS59gsYKY6mr8HFZ YGigko99UqfEI3SwgLH4WNgCWOwLsLaE+k09Dsh0R4u/fZ7dOHTayp4rIIXTToJyoWmC+Vl8xo 2SyL2hn6dft4Ah++/DTNZt4E2BtJKAKHaHuv5eyvU2gy33QZWCPJh9EXD+fJBOTF11GN6upX1z uklvi8/shzpQ36TRRCWcNDXoPEfvGZQtoBVKlECBwYOZdw==; 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:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=xc29Q6BCl8ilyaVYd0idARfiEVpOKZEHFRAy+O03has=; b=shKSfZaumQj3rfIhvxdZFdqY7i /qNMDeyYsM4dVpONDFKlbNtVXBPoUPxkV+hd6Irmtc3EVYdrPlFWRCAuXJpZ7tMzv8I8jh3GEZf9l blN6tPBXCayYZv/QuXvCwLDm1QSrpWScqFuVALmpycJVf1ps86fdlYqKNMMY8X43/6lrs7YlIZiu2 ajPvtYWu1/bk5Q/sKKgGbjaYmG9SBxIowKLtghpJ6XiKyShfnuSqq2RepJqlU6MKKb9GQjLunfmOA Tw9RXbOjed2FEpTvQdqOP6DfW9blNJiqHnPvACUL1Eu4h9cApQHHgvrHiYCBryaWvub17h7jDH2q0 Pwf6pyRA==; Received: from authenticated user by zero.zsh.org with local id 1nCqRE-000GBV-EP; Wed, 26 Jan 2022 22:06:48 +0000 Authentication-Results: zsh.org; iprev=pass (mout.gmx.net) smtp.remote-ip=212.227.17.21; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.a=rsa-sha256; dmarc=none header.from=gmx.com; arc=none Received: from mout.gmx.net ([212.227.17.21]:38151) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1nCqR0-000Ft3-LU; Wed, 26 Jan 2022 22:06:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643234790; bh=vU57SSv/BT9fDyFnzoQ86MnePxkvfl8nbyAWp72T5Jc=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=SBCY3iz+TvXJdybNIlbco2Rs5yhso7fjWTAOtjAH0knYWlrKs9+j2H+i+5FcDiGft t5AF3tUDt1to1LQB6alowKYAQlU5oGGVR6VJrLTJ+GYNnwhgaaJGAxcY0KJqfstolN ofI8DnnrsrkWnelo7BxgDqbMcF1h+CBlh4xUl1wU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [10.0.0.14] ([71.227.85.179]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1M5wPb-1nAwlK3s5b-007SBZ; Wed, 26 Jan 2022 23:06:30 +0100 Message-ID: <9e40a492-8415-c586-eaa1-a3539caf2c03@gmx.com> Date: Wed, 26 Jan 2022 17:06:28 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: _files' default descriptions of globbed-files and all-files are identical Content-Language: en-US To: Daniel Shahaf , zsh-workers@zsh.org References: <20220126153005.GC1732@tarpaulin.shahaf.local2> From: Eric Cook In-Reply-To: <20220126153005.GC1732@tarpaulin.shahaf.local2> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:ksv7c5xgw7pWqViyAcagIMK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TeXpblPiphfyoX+NuH8a8udXuyl/ybV/ZU5insqWIBNXtTLP/YUZ1C3 /bQJcYImuIT8+4yESVayTi5W3azrh/DGNcJrNVotyjCqCj0aiTEo0dNx7HvIqvHvhwq4MILtF TYGKFoU1NxM4dfCGa3NUtMZhgaQQ8FCHf9bvKta8/wNgjMqOEhjI/SDrAoxJSkx+Vhy3wq3X7 3EKqdh6sMmkQRMYQI0CBcfd6vi8fNrR7gfP7oIEiCqWe5Ivg3M/KaZ0RqLZxd0AdQw== X-Seq: 49719 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On 1/26/22 10:30, Daniel Shahaf wrote: > > I've discussed this on IRC and Eric did not support the change. If I > understand correctly (and I'm not sure I do), Eric'd prefer that the > completion function would use _path_files instead or that the user would > set the file-patterns style on a specific context. Eric, please > add/correct this as needed. > > Cheers, > > Daniel I'll try to be more clear: My mention of _path_files over the use of _files was me mistakenly thinkin= g that you had a completer that you /only/ wanted to show files that _files -g glob matches and when nothing does match, show nothing. which is= the behavior _path_files have; not looping over a preset of patterns as _files= does. Since the question is knowing which group of tags is being presented at th= e moment in the minibuffer (though not really explained, i think are called `tab la= bels' in man page), i don't think the use of _path_files appropriate since it wo= uldn't solve what you want. > + pats=3D( "${${glob:-*}//:/\\:}:globbed-files:globbed\\ files *(-/):d= irectories:directories" "*:all-files:other\\ files" ) When -g /isn't/ used ${glob:-*} expands to * for that tag label, changing = the default description from `file' to `globbed files'. which is something i don't thi= nk that you mean. unless you invoke _next_tags, you ignore globbed-files and directories in = tag-order or use -g nonmatchingpattern you won't see the all-files tag. completers have a style: show-completer Tested whenever a new completer is tried. If it is `true', the co= mpletion system out=E2=80=90 puts a progress message in the listing area showing what completer= is being tried. The message will be overwritten by any output when completions are fou= nd and is removed af=E2=80=90 ter completion is finished. that i think could be a way of showing which tag label is being tried, if = the user desired to know (show-taglabel or whatever). which is more generic than ju= st changing _files behavior.