From cc5a77f6b0aacc1fa36c8ad7c8f05ea033093f54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sat, 3 Aug 2024 17:28:21 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(tmux):=20add=20keybindings=20t?= =?UTF-8?q?o=20close=20panes=20and=20windows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/tmux/conf/binds.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/tmux/conf/binds.conf b/.config/tmux/conf/binds.conf index 7e2bed40..18908325 100644 --- a/.config/tmux/conf/binds.conf +++ b/.config/tmux/conf/binds.conf @@ -30,6 +30,12 @@ bind-key r command-prompt -I "#W" "rename-window '%%'" bind j switch-client -n bind k switch-client -p +# Close a window +bind-key Q confirm-before kill-window + +# Close a pane +bind-key q confirm-before kill-pane + # Swap windows bind -r "<" swap-window -d -t -1 bind -r ">" swap-window -d -t +1