Skip to content

Commit baddf38

Browse files
committed
feat(tmux): Add AI-powered conventional commit message popup binding
1 parent a3ca7bd commit baddf38

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.tmux.bindings.conf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,17 @@ bind-key "F" run-shell "sesh connect \"$(
6262
--bind 'ctrl-e:execute(tmux kill-session -t {})+change-prompt(⚡ )+reload(sesh list)'
6363
)\""
6464

65+
# -E flag makes sure the environment variables are preserved in the popup
66+
# -w flag sets the width of the popup
6567
bind-key "h" display-popup -E -w 60% "zsh -c 'source $HOME/.zprofile; $HOME/scripts/find_and_open_repo_in_browser'"
6668
bind-key "H" display-popup -E -w 60% "zsh -c 'source $HOME/.zprofile; $HOME/scripts/find_and_clone_repo_and_connect_with_sesh'"
67-
6869
bind-key "o" display-popup -E -w 60% "zsh -c 'source $HOME/.zprofile; $HOME/scripts/create_new_repo_and_connect_with_sesh'"
6970

71+
# -d flag sets the starting directory of the popup to the current pane's path, required for these scripts to work correctly
72+
# -b flag adds rounded borders to the popup
73+
bind-key "m" display-popup -E -w 50% -b rounded -d "#{pane_current_path}" "zsh -ic 'source $HOME/.zprofile; $HOME/scripts/create_conventional_commit_ai_message'"
7074

75+
# Open developer tools in new tmux windows
7176
bind-key "g" new-window -c "#{pane_current_path}" -n "😴 LazyGit" "lazygit 2> /dev/null"
7277
bind-key "G" new-window -c "#{pane_current_path}" -n "⚙️ GitUI" "gitui 2> /dev/null"
7378
bind-key "O" new-window -c "#{pane_current_path}" -n "😺 GitHub Dash" "gh dash 2> /dev/null"

0 commit comments

Comments
 (0)