[zsh] comment out expand-or-complete-with-dots

This commit is contained in:
Dmytro Meleshko 2019-09-26 00:45:33 +03:00
parent a3c85fa826
commit 9e2fe80dde
1 changed files with 16 additions and 16 deletions

View File

@ -132,19 +132,19 @@
bindkey "^[P" _palette_widget
# }}}
# expand-or-complete-with-dots {{{
expand-or-complete-with-dots() {
local wrap_ctrl_supported
if (( ${+terminfo[rmam]} && ${+terminfo[smam]} )); then
wrap_ctrl_supported=1
fi
# toggle line-wrapping off and back on again
if [[ -n "$wrap_ctrl_supported" ]]; then echoti rmam; fi
print -Pn "%F{red}...%f"
if [[ -n "$wrap_ctrl_supported" ]]; then echoti smam; fi
zle expand-or-complete
zle redisplay
}
zle -N expand-or-complete-with-dots
bindkey "^I" expand-or-complete-with-dots
# }}}
# # expand-or-complete-with-dots {{{
# expand-or-complete-with-dots() {
# local wrap_ctrl_supported
# if (( ${+terminfo[rmam]} && ${+terminfo[smam]} )); then
# wrap_ctrl_supported=1
# fi
# # toggle line-wrapping off and back on again
# if [[ -n "$wrap_ctrl_supported" ]]; then echoti rmam; fi
# print -Pn "%F{red}...%f"
# if [[ -n "$wrap_ctrl_supported" ]]; then echoti smam; fi
# zle expand-or-complete
# zle redisplay
# }
# zle -N expand-or-complete-with-dots
# bindkey "^I" expand-or-complete-with-dots
# # }}}