mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[zsh] comment out expand-or-complete-with-dots
This commit is contained in:
parent
a3c85fa826
commit
9e2fe80dde
1 changed files with 16 additions and 16 deletions
32
zsh/zle.zsh
32
zsh/zle.zsh
|
@ -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
|
||||
# # }}}
|
||||
|
|
Loading…
Reference in a new issue