hsmw: Bind Ctrl-A, Ctrl-E to original Zle widgets

This commit is contained in:
Sebastian Gniazdowski 2016-10-11 08:54:36 +02:00
parent ca39f019ef
commit e8e01e6258

View file

@ -201,6 +201,9 @@ if [ "$__hsmw_hcw_call_count" -eq "1" ]; then
[ -n "$termcap[@7]" ] && bindkey -M hsmw "$termcap[@7]" .end-of-line [ -n "$termcap[@7]" ] && bindkey -M hsmw "$termcap[@7]" .end-of-line
[ -n "$terminfo[khome]" ] && bindkey -M hsmw "$terminfo[khome]" .beginning-of-line [ -n "$terminfo[khome]" ] && bindkey -M hsmw "$terminfo[khome]" .beginning-of-line
[ -n "$terminfo[kend]" ] && bindkey -M hsmw "$terminfo[kend]" .end-of-line [ -n "$terminfo[kend]" ] && bindkey -M hsmw "$terminfo[kend]" .end-of-line
# The same for Ctrl-E, Ctrl-F
bindkey -M hsmw '^A' .beginning-of-line
bindkey -M hsmw '^E' .end-of-line
# Additional keys # Additional keys
bindkey -M hsmw '^P' "$up_widget" bindkey -M hsmw '^P' "$up_widget"