Tmux nested

This commit is contained in:
Daniel Flanagan 2023-07-18 00:15:57 -05:00
parent 661ca1eaec
commit 2476c471f3
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -87,18 +87,17 @@ bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear 'wl-copy'
bind K kill-pane
bind C-S-k kill-window
# TODO: handle tmux nesting by being able to toggle the prefix (and indicate in status bar?)
# Activate OFF mode
bind -n M-o \
set prefix None \;\
set key-table off \;\
set -ag status-right " OFF"
# TODO: styles after `set -u key-table`
#if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\
bind -T root F12 set -g prefix None \; set -g key-table off \; display-message "Keys OFF" \; refresh-client -S
# TODO: styles after `set -u key-table`
bind -T off F12 \
set -g -u prefix \;\
set -g -u key-table \;\
display-message "Keys ON" \;\
refresh-client -S
# Disable OFF mode
bind -T off M-O \
set -u prefix \;\
set -u key-table \;\
source-file "$HOME/.tmux.conf"
source-file "$ENV_PATH/*/tmux.d.conf"