From a55a3f452cbb65cbe65e6181516eb18d5a62993e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Mon, 29 Jul 2024 20:41:24 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(tmux):=20new=20keymap=20to=20a?= =?UTF-8?q?sk=20a=20name=20when=20creating=20a=20window?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/tmux/conf/binds.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/tmux/conf/binds.conf b/.config/tmux/conf/binds.conf index 916a2a5b..1cdc7b3e 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 r source-file ~/.config/tmux/tmux.conf \; display-message "tmux.conf reloaded" # Vim mode setw -g mode-keys vi @@ -17,6 +17,7 @@ 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 '%%'" # Move to the next and prev window bind ] next-window