Skip to content

Commit

Permalink
Change the group titles of _expand completions
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonrichert committed Apr 3, 2024
1 parent faed81e commit 2912c97
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Functions/Init/.autocomplete__config
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,20 @@ builtin zstyle ':completion:*:parameters' list-grouped no

builtin zstyle -e ':completion:*:-command-:*' format autocomplete:config:format command
builtin zstyle -e ':completion:*:descriptions' format autocomplete:config:format %d
builtin zstyle -e ':completion:*:all-expansions' format autocomplete:config:format expansion
autocomplete:config:format() {
reply=( $'%{\e[0;1;2m%}'$1$'%{\e[0m%}' )
}

builtin zstyle -e ':completion:*:expansions' format autocomplete:config:format:expansions
autocomplete:config:format:expansions() {
if (( $#exp[@] > 1 )); then
autocomplete:config:format 'globbed files'
else
autocomplete:config:format expansion
fi
}

builtin zstyle -e ':completion:*:warnings' format autocomplete:config:format:warnings
autocomplete:config:format:warnings() {
[[ $CURRENT == 1 && -z $PREFIX$SUFFIX ]] ||
Expand Down

0 comments on commit 2912c97

Please sign in to comment.