Browse code

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.

kremso authored on 09/03/2010 at 13:09:08
Showing 1 changed files
... ...
@@ -1,11 +1,11 @@
1 1
 ## fixme - the load process here seems a bit bizarre
2 2
 
3
-setopt noautomenu
3
+unsetopt menu_complete   # do not autoselect the first completion entry
4
+unsetopt flowcontrol
5
+setopt auto_menu         # show completion menu on succesive tab press
4 6
 setopt complete_in_word
5 7
 setopt always_to_end
6 8
 
7
-unsetopt flowcontrol
8
-
9 9
 WORDCHARS=''
10 10
 
11 11
 autoload -U compinit
... ...
@@ -23,14 +23,10 @@ fi
23 23
 
24 24
 zstyle ':completion:*' list-colors ''
25 25
 
26
-
27
-unsetopt MENU_COMPLETE
28
-#setopt AUTO_MENU
29
-
30 26
 # should this be in keybindings?
31 27
 bindkey -M menuselect '^o' accept-and-infer-next-history
32 28
 
33
-zstyle ':completion:*:*:*:*:*' menu yes select
29
+zstyle ':completion:*:*:*:*:*' menu select
34 30
 # zstyle ':completion:*:*:*:*:processes' force-list always
35 31
 
36 32
 zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'