forked from extern/ohmyzsh
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.
This commit is contained in:
parent
447da5816e
commit
926d9e8893
@ -1,11 +1,11 @@
|
|||||||
## fixme - the load process here seems a bit bizarre
|
## 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 complete_in_word
|
||||||
setopt always_to_end
|
setopt always_to_end
|
||||||
|
|
||||||
unsetopt flowcontrol
|
|
||||||
|
|
||||||
WORDCHARS=''
|
WORDCHARS=''
|
||||||
|
|
||||||
autoload -U compinit
|
autoload -U compinit
|
||||||
@ -23,14 +23,10 @@ fi
|
|||||||
|
|
||||||
zstyle ':completion:*' list-colors ''
|
zstyle ':completion:*' list-colors ''
|
||||||
|
|
||||||
|
|
||||||
unsetopt MENU_COMPLETE
|
|
||||||
#setopt AUTO_MENU
|
|
||||||
|
|
||||||
# should this be in keybindings?
|
# should this be in keybindings?
|
||||||
bindkey -M menuselect '^o' accept-and-infer-next-history
|
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:*:*:*:*:processes' force-list always
|
||||||
|
|
||||||
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
|
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
|
||||||
|
Loading…
Reference in New Issue
Block a user