mirror of
https://codeberg.org/hyperreal/dotfiles
synced 2024-11-25 11:53:43 +01:00
+ zman-widget
This commit is contained in:
parent
d889059723
commit
b5d035b3a4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user