In zsh
, if I type vim *.txt
then Tab, it expands to vim f1.txt f2.txt f3.txt
.
How can I make it show a completion menu listing files matching the pattern, so I can select a single file?
autocompletezsh
In zsh
, if I type vim *.txt
then Tab, it expands to vim f1.txt f2.txt f3.txt
.
How can I make it show a completion menu listing files matching the pattern, so I can select a single file?
Best Answer
Will cycle through the options; and then for a menu (on, like, everything)
For more information see
zshoptions(1)
and the "From Bash to Z Shell" book for slightly readable docs on the completion system.Menu completion on demand would require a custom widget: