diff options
-rw-r--r-- | zshinput | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -28,3 +28,18 @@ bindkey "^H" backward-delete-char bindkey "^U" backward-kill-line bindkey "^[[3~" delete-char + +page-up-within-tmux() { + if [[ $TMUX == '' ]]; then + # no-op; default behavior isn't useful, and anyway you don't want to do + # something TOO cool here since you won't be able to do it inside tmux. + # TODO if there's any way to command the /emu/ to scroll up one page, i + # would love to hear about it + else + tmux copy-mode -u + fi +} +zle -N page-up-within-tmux + +# page up +bindkey "${terminfo[kpp]}" page-up-within-tmux |