Tmux nested
This commit is contained in:
parent
661ca1eaec
commit
2476c471f3
|
@ -87,18 +87,17 @@ bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear 'wl-copy'
|
||||||
bind K kill-pane
|
bind K kill-pane
|
||||||
bind C-S-k kill-window
|
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`
|
# Disable OFF mode
|
||||||
#if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\
|
bind -T off M-O \
|
||||||
bind -T root F12 set -g prefix None \; set -g key-table off \; display-message "Keys OFF" \; refresh-client -S
|
set -u prefix \;\
|
||||||
|
set -u key-table \;\
|
||||||
# TODO: styles after `set -u key-table`
|
source-file "$HOME/.tmux.conf"
|
||||||
bind -T off F12 \
|
|
||||||
set -g -u prefix \;\
|
|
||||||
set -g -u key-table \;\
|
|
||||||
display-message "Keys ON" \;\
|
|
||||||
refresh-client -S
|
|
||||||
|
|
||||||
source-file "$ENV_PATH/*/tmux.d.conf"
|
source-file "$ENV_PATH/*/tmux.d.conf"
|
||||||
|
|
||||||
|
|
Reference in a new issue