mirror of
https://github.com/FliegendeWurst/tmux-thumbs.git
synced 2024-11-22 12:54:59 +00:00
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:
parent
ea1ad77f7e
commit
805a5ebe56
@ -6,7 +6,7 @@ DEFAULT_THUMBS_KEY="space"
|
|||||||
THUMBS_KEY=$(tmux show-option -gqv @thumbs-key)
|
THUMBS_KEY=$(tmux show-option -gqv @thumbs-key)
|
||||||
THUMBS_KEY=${THUMBS_KEY:-$DEFAULT_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"
|
BINARY="${CURRENT_DIR}/target/release/thumbs"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user