prevent leaderless O from unhiding outer nested tmux

This commit is contained in:
Matt Anderson
2026-07-31 12:09:31 -05:00
parent 204dbc42bb
commit 66eac0c007
+11 -3
View File
@@ -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 "#(date +'%A, %B %d, %Y')"
set -g status-right "" 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 \ bind o \
set prefix None \;\ set prefix None \;\
set key-table off \;\ set key-table off \;\
set status off set status off
# Disable OFF mode # Reserve C-Space O for leaving OFF mode.
bind -T off O \ unbind -T off O
bind -T off C-Space switch-client -T off-prefix
bind -T off-prefix O \
set -u prefix \;\ set -u prefix \;\
set -u key-table \;\ set -u key-table \;\
set -u status set -u status
# Forward every other C-Space sequence to the inner tmux.
bind -T off-prefix Any \
send-keys C-Space \;\
send-keys