let user specify a prefix-less @thumbs-key binding

This change allows me to bind a prefix-less shortcut for @thumbs-key.
For example, I bind a prefix-less Alt+Shift+U instead of Prefix + Space:

    set -g @thumbs-key '-n M-U'
This commit is contained in:
Suraj N. Kurapati 2020-05-09 14:46:57 -07:00 committed by Ferran Basora
parent ea1ad77f7e
commit 805a5ebe56

View File

@ -6,7 +6,7 @@ DEFAULT_THUMBS_KEY="space"
THUMBS_KEY=$(tmux show-option -gqv @thumbs-key)
THUMBS_KEY=${THUMBS_KEY:-$DEFAULT_THUMBS_KEY}
tmux bind-key "$THUMBS_KEY" run-shell -b "${CURRENT_DIR}/tmux-thumbs.sh"
tmux bind-key $THUMBS_KEY run-shell -b "${CURRENT_DIR}/tmux-thumbs.sh"
BINARY="${CURRENT_DIR}/target/release/thumbs"