Make bind A toggle the agent session display-popup

This commit is contained in:
2026-06-01 15:46:55 +01:00
parent 87b0c5ba20
commit 8d3b3316d2

View File

@@ -62,7 +62,9 @@ if '[ ! -n $ITERM_PROFILE ]' \
set -ga terminal-overrides 'xterm*:smxx=\E[9m'
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 50% -h 90% -E ~/.config/tmux/agent.sh
bind A if -F '#{==:#{session_name},agent}' { detach-client } {
display-popup -d '#{pane_current_path}' -w 50% -h 90% -E ~/.config/tmux/agent.sh
}
bind H display-popup -w 75% -h 75% -E htop
bind I display-popup -d '#{pane_current_path}' -E ~/.config/tmux/interpreter.sh
bind N display-popup -w 75% -h 90% -E ~/.config/tmux/notes.sh
@@ -71,7 +73,9 @@ if -b '~/.config/tmux/check-version.sh ">=" 3.2 && ~/.config/tmux/check-version.
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 A if -F '#{==:#{session_name},agent}' { detach-client } {
display-popup -S fg=#54546D -b rounded -d '#{pane_current_path}' -w 75% -h 90% -E ~/.config/tmux/agent.sh
}
bind H display-popup -S fg=#54546D -b rounded -w 50% -h 75% -E htop
bind I display-popup -S fg=#54546D -b rounded -d '#{pane_current_path}' -E ~/.config/tmux/interpreter.sh
bind N display-popup -S fg=#54546D -b rounded -w 75% -h 90% -E ~/.config/tmux/notes.sh