z-sy-h and z-au-s immunity also for Home and End keys

This commit is contained in:
Sebastian Gniazdowski 2016-09-19 16:42:44 +02:00
parent 307e8e5e81
commit b9575f5d08
2 changed files with 13 additions and 2 deletions

View file

@ -12,8 +12,8 @@ Video  view on [asciinema](https://asciinema.org/a/46371). You can resize th
* 19-09-2016
- better immunity to [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions)
and [zsh-syntax-highlighting](https://github.com/zsh-users/zsh-syntax-highlighting) left
and right cursor keys now work smoothly
and [zsh-syntax-highlighting](https://github.com/zsh-users/zsh-syntax-highlighting) home,
end, left and right cursor keys now work smoothly
* 25-05-2016
- Cooperation with

View file

@ -168,6 +168,17 @@ if [ "$__hsmw_hcw_call_count" -eq "1" ]; then
[ -n "$termcap[kr]" ] && bindkey -M hsmw "$termcap[kr]" .forward-char
[ -n "$terminfo[kcub1]" ] && bindkey -M hsmw "$terminfo[kcub1]" .backward-char
[ -n "$terminfo[kcuf1]" ] && bindkey -M hsmw "$terminfo[kcuf1]" .forward-char
# Now Home/End keys, first few recorded in my .zshrc during the years sequences
bindkey -M hsmw "\e[1~" .beginning-of-line
bindkey -M hsmw "\e[7~" .beginning-of-line
bindkey -M hsmw "\e[H" .beginning-of-line
bindkey -M hsmw "\e[4~" .end-of-line
bindkey -M hsmw "\e[F" .end-of-line
bindkey -M hsmw "\e[8~" .end-of-line
[ -n "$termcap[kh]" ] && bindkey -M hsmw "$termcap[kh]" .beginning-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[kend]" ] && bindkey -M hsmw "$terminfo[kend]" .end-of-line
# Needed for Fedora 23, zsh-5.1.1
bindkey -M hsmw ' ' self-insert