From 66eac0c0072407acc338ee62b42c0ad1e1ce43cf Mon Sep 17 00:00:00 2001 From: Matt Anderson Date: Fri, 31 Jul 2026 12:09:31 -0500 Subject: [PATCH] prevent leaderless O from unhiding outer nested tmux --- tmux/.tmux.conf | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 104443b..6812317 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -57,14 +57,22 @@ bind -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "pbcopy" # set -g status-right "#(date +'%A, %B %d, %Y')" set -g status-right "" -# Activate OFF mode (hide outer status entirely for nested tmux) +# Enter OFF mode from the outer tmux: C-Space o bind o \ set prefix None \;\ set key-table off \;\ set status off -# Disable OFF mode -bind -T off O \ +# Reserve C-Space O for leaving OFF mode. +unbind -T off O +bind -T off C-Space switch-client -T off-prefix + +bind -T off-prefix O \ set -u prefix \;\ set -u key-table \;\ set -u status + +# Forward every other C-Space sequence to the inner tmux. +bind -T off-prefix Any \ + send-keys C-Space \;\ + send-keys