Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
How to have Zsh completion menu and use glob patterns + recursive search?
- X-seq: zsh-users 29093
- From: Marc Coquand <marcc0000@xxxxx>
- To: zsh-users@xxxxxxx
- Subject: How to have Zsh completion menu and use glob patterns + recursive search?
- Date: Thu, 29 Jun 2023 12:40:16 +0000
- Archived-at: <https://zsh.org/users/29093>
- Feedback-id: 79185866:user:proton
- List-id: <zsh-users.zsh.org>
I have the following setup for zsh completion
autoload -U compinit && compinit
zstyle ':completion:*' menu select
zstyle ':completion:*' complete-options true
setopt GLOB_COMPLETE
zstyle ':completion*:default' menu 'select=0'
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
zmodload zsh/complist
Which gives me a nice autocomplete menu when I tab, where I can switch between different options. However, I'd like to be able to do ./**/*file*<tab> and get a selectable list of all options available.
I notice that if I remove all the previous options that I have enabled, ./**/*file*<tab> works but it expands to all available options. I'd like to have it instead as a menu of options that I can tab between. However, if I enable the completion list, ./**/*file*<tab> stops working and doesn't do anything.
So how do I enable so that I can recursively search for a file and have it show up in an auto-completion menu that I can tab between?
Thank you so much for your help
Marc
Messages sorted by:
Reverse Date,
Date,
Thread,
Author