diff options
author | kremso <kramar.tomas@gmail.com> | 2010-03-09 14:09:08 +0100 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2010-05-06 21:06:58 -0700 |
commit | 926d9e8893789e1b70cb4df2144c868f4aa91515 (patch) | |
tree | 8b502ec2ea004fa28fa52b511a407f3bf8a1af88 /lib | |
parent | 447da5816eb2be9c7a79906a484cb78334fd1d7d (diff) | |
download | zsh-926d9e8893789e1b70cb4df2144c868f4aa91515.tar.gz zsh-926d9e8893789e1b70cb4df2144c868f4aa91515.tar.bz2 zsh-926d9e8893789e1b70cb4df2144c868f4aa91515.zip |
Don't autoselect first completion entry (Fixes #14)
The key here is not using MENU_COMPLETE which autoselects the first
entry, but using AUTO_MENU which displays the menu but autoselects
on successive tab hit.
Also, do not use zstyle menu yes because that somehow overrides
the setopts.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/completion.zsh | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/completion.zsh b/lib/completion.zsh index 46b6d8f65..619dc0243 100644 --- a/lib/completion.zsh +++ b/lib/completion.zsh @@ -1,11 +1,11 @@ ## fixme - the load process here seems a bit bizarre -setopt noautomenu +unsetopt menu_complete # do not autoselect the first completion entry +unsetopt flowcontrol +setopt auto_menu # show completion menu on succesive tab press setopt complete_in_word setopt always_to_end -unsetopt flowcontrol - WORDCHARS='' autoload -U compinit @@ -23,14 +23,10 @@ fi zstyle ':completion:*' list-colors '' - -unsetopt MENU_COMPLETE -#setopt AUTO_MENU - # should this be in keybindings? bindkey -M menuselect '^o' accept-and-infer-next-history -zstyle ':completion:*:*:*:*:*' menu yes select +zstyle ':completion:*:*:*:*:*' menu select # zstyle ':completion:*:*:*:*:processes' force-list always zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01' |