From a1341265b9bf8c09be9cbde8e5adbf42b4c0dbb5 Mon Sep 17 00:00:00 2001 From: Juraj Fiala Date: Mon, 15 Aug 2016 12:35:57 +0200 Subject: [PATCH] [input] Add PageUp/Down to navigate history Incredibly useful when combined history-substring-search and/or a laptop keyboard. Closes #72 --- modules/input/init.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/input/init.zsh b/modules/input/init.zsh index 5145c0c..be9de1d 100644 --- a/modules/input/init.zsh +++ b/modules/input/init.zsh @@ -61,6 +61,14 @@ if [[ -n "${key_info[End]}" ]]; then bindkey "${key_info[End]}" end-of-line fi +if [[ -n "${key_info[PageUp]}" ]]; then + bindkey "${key_info[PageUp]}" up-line-or-history +fi + +if [[ -n "${key_info[PageDown]}" ]]; then + bindkey "${key_info[PageDown]}" down-line-or-history +fi + if [[ -n "${key_info[Insert]}" ]]; then bindkey "${key_info[Insert]}" overwrite-mode fi