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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user