feat(tmux): new keymap to ask a name when creating a window

This commit is contained in:
Sergio Laín 2024-07-29 20:41:24 +02:00
parent bf65915473
commit a55a3f452c
No known key found for this signature in database
GPG key ID: 8429B2EE312F8150

View file

@ -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