feat(tmux): add keybinding to close a session

This commit is contained in:
Sergio Laín 2024-08-05 13:59:28 +02:00
parent 9fb693d72e
commit ccde29aa57
No known key found for this signature in database
GPG key ID: 8429B2EE312F8150
2 changed files with 3 additions and 1 deletions

View file

@ -36,6 +36,9 @@ bind-key Q confirm-before kill-window
# Close a pane # Close a pane
bind-key q confirm-before kill-pane bind-key q confirm-before kill-pane
# Close a session
bind-key M-q confirm-before kill-session
# Swap windows # Swap windows
bind -r "<" swap-window -d -t -1 bind -r "<" swap-window -d -t -1
bind -r ">" swap-window -d -t +1 bind -r ">" swap-window -d -t +1

View file

@ -29,7 +29,6 @@ set -g @catppuccin_status_connect_separator "yes"
# Sessionx # Sessionx
set -g @sessionx-bind 'space' set -g @sessionx-bind 'space'
set -g @sessionx-filter-current 'false' set -g @sessionx-filter-current 'false'
set -g @sessionx-window-mode 'on'
set -g @sessionx-preview-location 'top' set -g @sessionx-preview-location 'top'
set -g @sessionx-preview-ratio '65%' set -g @sessionx-preview-ratio '65%'
set -g @sessionx-window-height '95%' set -g @sessionx-window-height '95%'