feat(claude): improve ai workflow

This commit is contained in:
Barrett Ruth 2026-03-04 14:33:06 -05:00
parent e84a22dbcb
commit 902f0f3ad6
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
11 changed files with 196 additions and 33 deletions

View file

@ -145,7 +145,7 @@ ai)
;;
code)
require nvim
spawn_or_focus code 'nvim -c "lua require([[config.tmux]]).run([[nvim]])"'
spawn_or_focus code 'nvim .'
;;
git)
require nvim git
@ -153,13 +153,9 @@ git)
if ! git -C "$pane_path" rev-parse --is-inside-work-tree >/dev/null 2>&1; then
tmux display-message "Not a git repository"
else
spawn_or_focus git 'nvim -c "lua require([[config.tmux]]).run([[git]])"'
spawn_or_focus git 'nvim -c "Git|only"'
fi
;;
run)
require nvim
spawn_or_focus run 'nvim -c "lua require([[config.tmux]]).run([[run]])"'
;;
shell)
spawn_or_focus shell
;;
@ -178,7 +174,7 @@ cmd)
action=$(printf '%s' "$result" | sed -n '2p')
[ $rc -eq 130 ] && exit
if [ -n "$query" ] && [ "$query" != "$action" ]; then
tmux $query
tmux "$query"
elif [ -n "$action" ]; then
case "$action" in
switch-client) pick_session ;;