ref(tmux)

This commit is contained in:
thek4n 2024-05-27 13:13:11 +03:00
parent 678fb43670
commit a74eda0825

View File

@ -44,6 +44,15 @@ bind Q kill-window
# Kill other windows
bind C-q confirm-before -p "kill other windows? (y/n)" "kill-window -a"
# Detach
bind d detach
# Choose client to detach
bind D choose-client -Z
# Detach other clients
bind C-d if -F '#{session_many_attached}' \
'confirm-before -p "Detach other clients? (y/n)" "detach -a"' \
'display "Session has only 1 client attached"'
bind r command-prompt -I '#W' -p "New window name:" "rename-window '%%'"
bind R command-prompt -I '#S' -p "New session name:" "rename-session '%%'"
@ -99,12 +108,6 @@ bind o if -F '#{pane_synchronized}' 'setw synchronize-panes off' 'setw synchroni
bind O setw synchronize-panes off
# Detach
bind C-d if -F '#{session_many_attached}' \
'confirm-before -p "Detach other clients? (y/n)" "detach -a"' \
'display "Session has only 1 client attached"'
bind i "set -g display-time $_tmux_display_panes_time \; display-message \; display-panes \; set -g display-time $_tmux_display_time"