1
0
Fork 0

Make prefix in completion menu of separate color

When using zsh completion menu, the already-typed prefix is made
faint (decreased intensity) and striked-through, and the next
character is made bold (increased intensity).

This makes it easy to quickly see which is the next character
that distinguishes available completion options.

Reddit thread: http://redd.it/msps0
Solution thanks to: @nicoulaj
pull/567/head
Kernc 11 years ago
parent 7722dd4400
commit 057c715492

@ -76,7 +76,7 @@ zstyle ':completion:*:functions' ignored-patterns '(_*|pre(cmd|exec))'
zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters
# Directories # Directories
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} zstyle -e ':completion:*:default' list-colors 'reply=("${PREFIX:+=(#bi)($PREFIX:t)(?)*==2;9=1}:${(s.:.)LS_COLORS}")'
zstyle ':completion:*:*:cd:*' tag-order local-directories directory-stack path-directories zstyle ':completion:*:*:cd:*' tag-order local-directories directory-stack path-directories
zstyle ':completion:*:*:cd:*:directory-stack' menu yes select zstyle ':completion:*:*:cd:*:directory-stack' menu yes select
zstyle ':completion:*:-tilde-:*' group-order 'named-directories' 'path-directories' 'users' 'expand' zstyle ':completion:*:-tilde-:*' group-order 'named-directories' 'path-directories' 'users' 'expand'

Loading…
Cancel
Save