From 565d039b3b138e3add82cf67a56d01eeb975cf43 Mon Sep 17 00:00:00 2001 From: embear Date: Fri, 29 Sep 2023 10:19:39 +0200 Subject: [PATCH] feat: add documentation to key bindings --- pomodoro.tmux | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pomodoro.tmux b/pomodoro.tmux index f1a5536..39bd6bb 100755 --- a/pomodoro.tmux +++ b/pomodoro.tmux @@ -50,19 +50,19 @@ load_custom_timings() { set_keybindings() { toggle_binding=$(get_tmux_option "$toggle_pomodoro" "$default_toggle_pomodoro") for key in $toggle_binding; do - tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/pomodoro.sh toggle" - tmux bind-key "C-$key" run-shell "$CURRENT_DIR/scripts/pomodoro.sh menu" - tmux bind-key "M-$key" run-shell "$CURRENT_DIR/scripts/pomodoro.sh custom" + tmux bind-key -N "Toggle between starting/pausing a Pomodoro/break" "$key" run-shell "$CURRENT_DIR/scripts/pomodoro.sh toggle" + tmux bind-key -N "Open the Pomodoro timer menu" "C-$key" run-shell "$CURRENT_DIR/scripts/pomodoro.sh menu" + tmux bind-key -N "Set a custom Pomodoro timer" "M-$key" run-shell "$CURRENT_DIR/scripts/pomodoro.sh custom" done skip_binding=$(get_tmux_option "$skip_pomodoro" "$default_skip_pomodoro") for key in $skip_binding; do - tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/pomodoro.sh skip" + tmux bind-key -N "Skip a Pomodoro/break" "$key" run-shell "$CURRENT_DIR/scripts/pomodoro.sh skip" done cancel_binding=$(get_tmux_option "$cancel_pomodoro" "$default_cancel_pomodoro") for key in $cancel_binding; do - tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/pomodoro.sh cancel" + tmux bind-key -N "Cancel a Pomodoro/break" "$key" run-shell "$CURRENT_DIR/scripts/pomodoro.sh cancel" done }