zsh-workers
 help / color / mirror / code / Atom feed
* Superfluous completion for noglob
       [not found] ` <1d210c48-2b1a-4cfb-a9bb-eb369cfdcfc1@eastlink.ca>
@ 2024-06-03 19:55   ` Patrick
  2024-06-03 20:48     ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick @ 2024-06-03 19:55 UTC (permalink / raw)
  To: zsh-workers

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Superfluous completion for noglob
  2024-06-03 19:55   ` Superfluous completion for noglob Patrick
@ 2024-06-03 20:48     ` Bart Schaefer
  2024-06-04 17:54       ` Patrick
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2024-06-03 20:48 UTC (permalink / raw)
  To: Patrick; +Cc: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 802 bytes --]

On Mon, Jun 3, 2024 at 12:55 PM Patrick <patrick1@posteo.de> wrote:

>
> 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.
>

They do, for me, zsh -f with default completions.

 _python_argcomplete_global is not part of the base zsh source, so it must
have been added to your completion functions somehow.  I would look for
something there that has unwittingly or misguidedly changed the completion
for "noglob".

[-- Attachment #2: Type: text/html, Size: 1184 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Superfluous completion for noglob
  2024-06-03 20:48     ` Bart Schaefer
@ 2024-06-04 17:54       ` Patrick
  0 siblings, 0 replies; 3+ messages in thread
From: Patrick @ 2024-06-04 17:54 UTC (permalink / raw)
  To: zsh-workers

Am Montag, 3. Juni 2024, 22:48:23 MESZ schrieben Sie:
> On Mon, Jun 3, 2024 at 12:55 PM Patrick <patrick1@posteo.de> wrote:
> > 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.
> 
> They do, for me, zsh -f with default completions.
> 
>  _python_argcomplete_global is not part of the base zsh source, so it must
> have been added to your completion functions somehow.  I would look for
> something there that has unwittingly or misguidedly changed the completion
> for "noglob".

Thanks for the hint! That completion function was installed by a standard 
package from Arch Linux, python-argcomplete. De-installing the package fixed 
the problem.

BR, Patrick





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-06-04 17:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAOwzMra3u86inWC0Gt_6bx1Jh0Jq+Fh1Xume+opyVMcQoeACOQ@mail.gmail.com>
     [not found] ` <1d210c48-2b1a-4cfb-a9bb-eb369cfdcfc1@eastlink.ca>
2024-06-03 19:55   ` Superfluous completion for noglob Patrick
2024-06-03 20:48     ` Bart Schaefer
2024-06-04 17:54       ` Patrick

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).