From 805a5ebe56c2cb54ebc18ab09f6d1b66d5331a6e Mon Sep 17 00:00:00 2001 From: "Suraj N. Kurapati" Date: Sat, 9 May 2020 14:46:57 -0700 Subject: [PATCH] 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' --- tmux-thumbs.tmux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmux-thumbs.tmux b/tmux-thumbs.tmux index ece336d..d879bdc 100755 --- a/tmux-thumbs.tmux +++ b/tmux-thumbs.tmux @@ -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"