1
0
Fork 0
mirror of synced 2024-12-23 14:33:21 -05:00

[input] Add PageUp/Down to navigate history

Incredibly useful when combined history-substring-search and/or a laptop keyboard.

Closes #72
This commit is contained in:
Juraj Fiala 2016-08-15 12:35:57 +02:00 committed by Matt Hamilton
parent e49fdbd260
commit a1341265b9

View file

@ -61,6 +61,14 @@ if [[ -n "${key_info[End]}" ]]; then
bindkey "${key_info[End]}" end-of-line bindkey "${key_info[End]}" end-of-line
fi 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 if [[ -n "${key_info[Insert]}" ]]; then
bindkey "${key_info[Insert]}" overwrite-mode bindkey "${key_info[Insert]}" overwrite-mode
fi fi