Add <prefix>A binding to display-popup with agent.sh

Enables the use of AI agents (claude, gemini) in a persistent
display-popup, backed by a tmux session, via the <prefix>A binding.
This commit is contained in:
2026-01-29 11:22:22 +00:00
parent 2d4858ac11
commit bb0bc511a6
3 changed files with 56 additions and 1 deletions

View File

@@ -67,12 +67,14 @@ if -b '[ "`uname`" = "Darwin" ]' \
'set -g default-command "reattach-to-user-namespace -l $SHELL"'
if -b '~/.config/tmux/check-version.sh ">=" 3.2 && ~/.config/tmux/check-version.sh "<" 3.3' {
bind A display-popup -d '#{pane_current_path}' -w 75% -h 90% -E ~/.config/tmux/agent.sh
bind I display-popup -d '#{pane_current_path}' -E '$SHELL -i ~/.config/tmux/interpreter.sh'
bind P display-popup -w 60 -h 10 -E '~/.config/tmux/project.sh'
bind S display-popup -w 60 -h 10 -E '~/.config/tmux/session.sh'
bind T display-popup -d '#{pane_current_path}' -E $SHELL
}
if -b '~/.config/tmux/check-version.sh ">=" 3.3' {
bind A display-popup -S fg=#54546D -b rounded -d '#{pane_current_path}' -w 75% -h 90% -E ~/.config/tmux/agent.sh
bind I display-popup -S fg=#54546D -b rounded -d '#{pane_current_path}' -E '$SHELL -i ~/.config/tmux/interpreter.sh'
bind P display-popup -B -w 60 -h 10 -E '~/.config/tmux/project.sh'
bind S display-popup -B -w 60 -h 10 -E '~/.config/tmux/session.sh'