+ zman-widget

This commit is contained in:
Jeffrey Serio 2023-01-16 01:38:46 -06:00
parent d889059723
commit b5d035b3a4

View File

@ -14,27 +14,12 @@ if (( ${+terminfo[smkx]} && ${+terminfo[rmkx]} )); then
add-zle-hook-widget -Uz zle-line-finish zle_application_mode_stop add-zle-hook-widget -Uz zle-line-finish zle_application_mode_stop
fi fi
## check if fzf keybindings file exists
if test -f /home/jas/.fzf/shell/key-bindings.zsh; then
source /home/jas/.fzf/shell/key-bindings.zsh
page-up-within-tmux() {
if (( ${+TMUX} )); then
tmux copy-mode -u
fi
}
zle -N page-up-within-tmux
# page up
bindkey "${terminfo[kpp]}" page-up-within-tmux
fi
## keybinding for convenient viewing of man pages ## keybinding for convenient viewing of man pages
if test -x "${HOME}/bin/tman"; then if test -x "${HOME}/bin/zman"; then
tman-widget() { "${HOME}/bin/tman"} zman-widget() { "${HOME}/bin/zman"}
zle -N tman-widget zle -N zman-widget
bindkey '^[m' tman-widget bindkey '^[m' zman-widget
fi fi
## gumosh ## gumosh