From: Patrick <patrick1@posteo.de>
To: zsh-workers@zsh.org
Subject: Superfluous completion for noglob
Date: Mon, 03 Jun 2024 19:55:38 +0000 [thread overview]
Message-ID: <12497269.O9o76ZdvQC@thor> (raw)
In-Reply-To: <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
next parent reply other threads:[~2024-06-03 19:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAOwzMra3u86inWC0Gt_6bx1Jh0Jq+Fh1Xume+opyVMcQoeACOQ@mail.gmail.com>
[not found] ` <1d210c48-2b1a-4cfb-a9bb-eb369cfdcfc1@eastlink.ca>
2024-06-03 19:55 ` Patrick [this message]
2024-06-03 20:48 ` Bart Schaefer
2024-06-04 17:54 ` Patrick
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=12497269.O9o76ZdvQC@thor \
--to=patrick1@posteo.de \
--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).