From 23eae783f7a79bb82b8f8f5887fee000975f9222 Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Mon, 19 Sep 2016 16:22:17 +0200 Subject: [PATCH] =?UTF-8?q?Better=20immunity=20to=20z-sy-h=20and=20z-au-s?= =?UTF-8?q?=20=E2=80=93=C2=A0left=20and=20right=20cursor=20keys?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 +++++ history-search-multi-word | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/README.md b/README.md index 8e88863..be5e0fe 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/history-search-multi-word b/history-search-multi-word index 462e5b3..079e892 100644 --- a/history-search-multi-word +++ b/history-search-multi-word @@ -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