mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-22 03:13:09 +00:00
Better immunity to z-sy-h and z-au-s – left and right cursor keys
This commit is contained in:
parent
1a3aa7ee22
commit
23eae783f7
2 changed files with 13 additions and 0 deletions
|
@ -10,6 +10,11 @@ Video – view on [asciinema](https://asciinema.org/a/46371). You can resize th
|
|||
|
||||
## News
|
||||
|
||||
* 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
|
||||
|
||||
* 25-05-2016
|
||||
- Cooperation with
|
||||
[zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions)
|
||||
|
|
|
@ -161,6 +161,14 @@ if [ "$__hsmw_hcw_call_count" -eq "1" ]; then
|
|||
[ -n "$terminfo[kcud1]" ] && bindkey -M hsmw "$terminfo[kcud1]" "$down_widget"
|
||||
[ -n "$terminfo[kdch1]" ] && bindkey -M hsmw "$terminfo[kdch1]" delete-char
|
||||
|
||||
# More bindkeys, to remove influence of plugins that overload things (z-sy-h, z-au-s)
|
||||
bindkey -M hsmw '^[[D' .backward-char
|
||||
bindkey -M hsmw '^[[C' .forward-char
|
||||
[ -n "$termcap[kl]" ] && bindkey -M hsmw "$termcap[kl]" .backward-char
|
||||
[ -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
|
||||
|
||||
# Needed for Fedora 23, zsh-5.1.1
|
||||
bindkey -M hsmw ' ' self-insert
|
||||
|
||||
|
|
Loading…
Reference in a new issue