From 3234999026a3e118006f44d381996fa0bd00fa81 Mon Sep 17 00:00:00 2001 From: Boruch Baum Date: Thu, 29 Jul 2021 02:21:44 +0000 Subject: [PATCH] Add "notes" to keybindings By default, tmux binds PREFIX+~ to tmux command "list-keys -N", which display a relatively pretty listing of tmux keybindings, but only for those keybindings that were defined with a descriptive "note". This commit adds those notes for "tmux-logging" commands. --- logging.tmux | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/logging.tmux b/logging.tmux index c65856e..8ebbe4f 100755 --- a/logging.tmux +++ b/logging.tmux @@ -7,10 +7,10 @@ source "$CURRENT_DIR/scripts/shared.sh" main() { - tmux bind-key "$logging_key" run-shell "$CURRENT_DIR/scripts/toggle_logging.sh" - tmux bind-key "$pane_screen_capture_key" run-shell "$CURRENT_DIR/scripts/screen_capture.sh" - tmux bind-key "$save_complete_history_key" run-shell "$CURRENT_DIR/scripts/save_complete_history.sh" - tmux bind-key "$clear_history_key" run-shell "$CURRENT_DIR/scripts/clear_history.sh" + tmux bind-key -N "Begin logging current pane" "$logging_key" run-shell "$CURRENT_DIR/scripts/toggle_logging.sh" + tmux bind-key -N "Pane screenshot" "$pane_screen_capture_key" run-shell "$CURRENT_DIR/scripts/screen_capture.sh" + tmux bind-key -N "Save pane complete history" "$save_complete_history_key" run-shell "$CURRENT_DIR/scripts/save_complete_history.sh" + tmux bind-key -N "Clear pane history" "$clear_history_key" run-shell "$CURRENT_DIR/scripts/clear_history.sh" } main