Skip to content

Commit 1da448f

Browse files
committed
Add key notes for better <prefix> ? help text
Slightly better version of PR tmux-plugins#454 by @eggbean.
1 parent 85d86ce commit 1da448f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

resurrect.tmux

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ set_save_bindings() {
1010
local key
1111
for key in $key_bindings; do
1212
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/save.sh"
13+
tmux bind-key -N "[$(basename "$CURRENT_DIR")] Save sessions" "$key"
1314
done
1415
}
1516

@@ -18,6 +19,7 @@ set_restore_bindings() {
1819
local key
1920
for key in $key_bindings; do
2021
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/restore.sh"
22+
tmux bind-key -N "[$(basename "$CURRENT_DIR")] Restore sessions" "$key"
2123
done
2224
}
2325

0 commit comments

Comments
 (0)