Add PageUp/Down for navigating through history.
Incredibly useful when combined history-substring-search and/or a laptop keyboard.
This commit is contained in:
parent
bb81ab09b9
commit
a06f53f142
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue