From de907c8f7d8a44b625aa574aa3f291423db9cc19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sat, 24 Aug 2024 01:26:23 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20config(tmux):=20bunch=20of?= =?UTF-8?q?=20new=20bindings=20and=20some=20changes=20to=20existing=20ones?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/tmux/conf/binds.conf | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.config/tmux/conf/binds.conf b/.config/tmux/conf/binds.conf index 340127ab..c9be1f7c 100644 --- a/.config/tmux/conf/binds.conf +++ b/.config/tmux/conf/binds.conf @@ -4,7 +4,7 @@ set -g prefix M-Space bind Space send-prefix # Config reload -bind R source-file ~/.config/tmux/tmux.conf \; display-message "tmux.conf reloaded" +bind C-r source-file ~/.config/tmux/tmux.conf \; display-message "tmux.conf reloaded" # Vim mode setw -g mode-keys vi @@ -17,27 +17,31 @@ bind - split-window -vc "#{pane_current_path}" # Maintain the same path when creating a new window bind c new-window -c "#{pane_current_path}" -bind-key C command-prompt -p "Name of new window: " "new-window -c '#{pane_current_path}' -n '%%'" +bind-key C command-prompt -p "Enter window name:" "new-window -n '%%'" # Move to the next and prev window bind-key l next-window bind-key h previous-window +bind-key -n M-l next-window +bind-key -n M-h previous-window + # Change window name bind-key r command-prompt -I "#W" "rename-window '%%'" +bind-key R command-prompt -I "#W" "rename-session '%%'" # Move to the next and prev session bind j switch-client -n bind k switch-client -p # Close a window -bind-key Q confirm-before kill-window +bind-key Q kill-window # Close a pane -bind-key q confirm-before kill-pane +bind-key q kill-pane # Close a session -bind-key M-q confirm-before kill-session +bind-key M-q kill-session # Swap windows bind -r "<" swap-window -d -t -1