From: Eric Cook <llua@gmx.com>
To: zsh-workers@zsh.org
Subject: Re: _files' default descriptions of globbed-files and all-files are identical
Date: Wed, 26 Jan 2022 17:15:20 -0500 [thread overview]
Message-ID: <e01d762c-6501-3062-adbd-88af55451709@gmx.com> (raw)
In-Reply-To: <9e40a492-8415-c586-eaa1-a3539caf2c03@gmx.com>
On 1/26/22 17:06, Eric Cook wrote:
> > + pats=( "${${glob:-*}//:/\\:}:globbed-files:globbed\\ files *(-/):directories: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 think 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.
something like:
" *(-/):directories:directory ${${glob:-*}//:/\\:}(#q^-/):globbed-files${glob:+:globbed\\ file\\ (${${glob}//:/\\:})}" '*:all-files'
would get what you intended
next prev parent reply other threads:[~2022-01-26 22:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-26 15:30 Daniel Shahaf
2022-01-26 22:06 ` Eric Cook
2022-01-26 22:15 ` Eric Cook [this message]
2022-01-27 10:09 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e01d762c-6501-3062-adbd-88af55451709@gmx.com \
--to=llua@gmx.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).