Skip to content

Commit

Permalink
Make list prompt more colorful
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonrichert committed May 27, 2021
1 parent 70f6aa0 commit 6b16583
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions module/.autocomplete.async
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ bindkey -s -M menuselect '^S' '^G^S'
unset MENUSELECT

(( KEYS_QUEUED_COUNT || PENDING )) &&
return 0
return 0

region_highlight=()
[[ -v functions[_zsh_highlight] ]] &&
_zsh_highlight
_zsh_highlight
typeset -gH _autocomplete__highlight=( "$region_highlight[@]" )
[[ -v functions[_zsh_autosuggest_highlight_apply] ]] &&
_zsh_autosuggest_highlight_apply
_zsh_autosuggest_highlight_apply

if (( REGION_ACTIVE )) ||
[[ -v _autocomplete__isearch && $LASTWIDGET == *(incremental|isearch)* ]]; then
Expand All @@ -132,7 +132,7 @@ bindkey -s -M menuselect '^S' '^G^S'
return

[[ $_lastcomp[insert] == *unambiguous ]] &&
zle .auto-suffix-retain # Makes the cursor stay in the right place.
zle .auto-suffix-retain # Makes the cursor stay in the right place.

.autocomplete.async.start
return 0
Expand Down Expand Up @@ -348,7 +348,7 @@ bindkey -s -M menuselect '^S' '^G^S'

.autocomplete.async.list-choices.post() {
if [[ -v _autocomplete__partial_list ]]; then
compadd -J -last- -x $'%{\e[7m%}(MORE)%{\e[27;0m%}'
compadd -J -last- -x '%F{black}%K{14}(MORE)%f%k'
unset _autocomplete__partial_list
fi
compstate[insert]=
Expand Down
2 changes: 1 addition & 1 deletion module/.autocomplete.config
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ zstyle ':completion:*:history-lines' format ''

zstyle ':completion:*' auto-description '%d'
zstyle ':completion:*:parameters' extra-verbose yes
zstyle ':completion:*:default' select-prompt $'%{\e[7m%}line %l%{\e[27;0m%}'
zstyle ':completion:*:default' select-prompt '%F{black}%K{14}line %l (%p)%f%k'

zstyle ':completion:*' insert-sections yes
zstyle ':completion:*' separate-sections yes

0 comments on commit 6b16583

Please sign in to comment.