feat(tmux): keybinding to rename a window

This commit is contained in:
Sergio Laín 2024-08-02 14:09:57 +02:00
parent c91849cc38
commit b8f0e81bb1
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 -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