+ 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
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
if test -x "${HOME}/bin/tman"; then
tman-widget() { "${HOME}/bin/tman"}
zle -N tman-widget
if test -x "${HOME}/bin/zman"; then
zman-widget() { "${HOME}/bin/zman"}
zle -N zman-widget
bindkey '^[m' tman-widget
bindkey '^[m' zman-widget
fi
## gumosh