zsh: completion menu. How to place common part of names? -


i have completion menu configured in zsh. works great, no problem.

now want make zsh act that:

let's there 3 files in directory:

  1. somefile_first
  2. somefile_second
  3. somefile_third

now when press [tab], completion menu first file placed in command line. want zsh complete common part of file names (in example somefile_), not place else after common part, , let me navigate through completion menu.

how do that?

i realize question old stumbled upon when looking same answer. here found out.

afaik when using completion menu zsh place highlighted completion in command line. can make less hasty.

unsetopt menucomplete setopt automenu 

changes behaviour

  • first tab completes common part
  • second lists completions without changing command line
  • third starts menu , completes command line highlighted completion

if prefer no command line changes fancy menu unset automenu too:

unsetopt menucomplete automenu 

that gives bash-like completion. common part completed , propositions listed.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -