diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-31 19:20:47 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-31 19:20:47 +0300 |
| commit | 7f3b3d58527db7a5e6a167555e1526d6836d7fe4 (patch) | |
| tree | 0b268a0150c1abef50f89affba84a23665504f78 /tmux | |
| parent | aca4f43dc309b4d4a64d52aebcb28b1951feb146 (diff) | |
tmux: add Prefix+I / Prefix+O to cycle A- sessions
Mirrors the default Prefix+( / Prefix+) bindings but filtered to
sessions whose name starts with the 'A-' agent-workload prefix.
Logic lives in scripts/tmux-cycle-a-session.
Amp-Thread-ID: https://ampcode.com/threads/T-019e7daf-7dbc-720d-a818-d971666b01e0
Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'tmux')
| -rw-r--r-- | tmux/tmux.conf | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 8147790..e932031 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -39,6 +39,11 @@ bind-key T choose-tree # agent workload). Pressing it again strips the prefix. bind-key @ run-shell 'cur=$(tmux display-message -p "#S"); case "$cur" in A-*) tmux rename-session "${cur#A-}" ;; *) tmux rename-session "A-$cur" ;; esac' +# Cycle through sessions whose name starts with "A-" (agent workloads). +# Mirrors the default Prefix+( / Prefix+) bindings but filtered to A- sessions. +bind-key O run-shell 'tmux-cycle-a-session next' +bind-key I run-shell 'tmux-cycle-a-session prev' + set-option -g pane-active-border-style fg=magenta,bold set -g status-right '#{@hexai_status} #[fg=colour8]| %H:%M' |
