Skip to content

Commit

Permalink
feat: add documentation to key bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
embear authored Sep 29, 2023
1 parent 48ea221 commit 565d039
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pomodoro.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 565d039

Please sign in to comment.