✨ feat(tmux): keybinding to rename a window
This commit is contained in:
parent
c91849cc38
commit
b8f0e81bb1
1 changed files with 4 additions and 1 deletions
|
@ -4,7 +4,7 @@ set -g prefix M-Space
|
||||||
bind Space send-prefix
|
bind Space send-prefix
|
||||||
|
|
||||||
# Config reload
|
# 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
|
# Vim mode
|
||||||
setw -g mode-keys vi
|
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 l next-window
|
||||||
bind-key h previous-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
|
# Move to the next and prev session
|
||||||
bind j switch-client -n
|
bind j switch-client -n
|
||||||
bind k switch-client -p
|
bind k switch-client -p
|
||||||
|
|
Loading…
Add table
Reference in a new issue