From b8f0e81bb1ee99179aee8c9c0a2d8eaa9789fa5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Fri, 2 Aug 2024 14:09:57 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(tmux):=20keybinding=20to=20ren?= =?UTF-8?q?ame=20a=20window?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/tmux/conf/binds.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/tmux/conf/binds.conf b/.config/tmux/conf/binds.conf index c04f406d..7e2bed40 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-key r source-file ~/.config/tmux/tmux.conf \; display-message "tmux.conf reloaded" +bind-key -n R source-file ~/.config/tmux/tmux.conf \; display-message "tmux.conf reloaded" # Vim mode setw -g mode-keys vi @@ -23,6 +23,9 @@ bind-key C command-prompt -p "Name of new window: " "new-window -c '#{pane_curre bind-key l next-window bind-key h previous-window +# Change window name +bind-key r command-prompt -I "#W" "rename-window '%%'" + # Move to the next and prev session bind j switch-client -n bind k switch-client -p