Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Superfluous completion for noglob
- X-seq: zsh-workers 52940
- From: Patrick <patrick1@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Superfluous completion for noglob
- Date: Mon, 03 Jun 2024 19:55:38 +0000
- Archived-at: <https://zsh.org/workers/52940>
- In-reply-to: <1d210c48-2b1a-4cfb-a9bb-eb369cfdcfc1@eastlink.ca>
- List-id: <zsh-workers.zsh.org>
- References: <CAOwzMra3u86inWC0Gt_6bx1Jh0Jq+Fh1Xume+opyVMcQoeACOQ@mail.gmail.com> <1d210c48-2b1a-4cfb-a9bb-eb369cfdcfc1@eastlink.ca>
Hi all,
I feel that using the 'noglob' precommand adds superfluous items to the
completion list.
To reproduce, for example for command 'cd':
zsh -f
autoload compinit; compinit
cd <Tab>
[Only directories are shown, as I would expect]
noglob cd <Tab>
[Many regular files etc. are also offered.]
Pressing 'Ctrl-x h' after 'noglob cd' reveals:
tags in context :completion::complete:cd::
local-directories (_cd)
tags in context :completion::complete:noglob::
use-compctl (_default _python_argcomplete_global)
globbed-files (_files _default _python_argcomplete_global)
I would expect that plain 'cd' and 'noglob cd' offer the same completion items.
Is this a bug, or can I change this on my own?
Thanks, Patrick
Messages sorted by:
Reverse Date,
Date,
Thread,
Author