tmux renaming is now cooler

This commit is contained in:
Christoph J. Scherr 2023-02-08 13:40:17 +01:00
parent 16b14188b5
commit eb7feb543e
2 changed files with 8 additions and 4 deletions

View File

@ -42,9 +42,11 @@ bind C-J swap-pane -D
# rotate panels with prefix+ctrl+o and prefix+ctrl+shift+o (reversed)
# default
# rename window with prefix-n
# rename windows/sessions with prefix-n-<w|s>
unbind n #DEFAULT KEY: Move to next split-window
bind n command-prompt "rename-window '%%'"
bind -T prefix n switch-client -T naming_table
bind -T naming_table s command-prompt "rename-session '%%'"
bind -T naming_table w command-prompt "rename-window '%%'"
# set the first window id to 1, I know computer scientists always start from 0, but 0 is so far away from my left hand.
# remember: prefix-{digit} brings you to the window with the id {digit}

View File

@ -42,9 +42,11 @@ bind C-J swap-pane -D
# rotate panels with prefix+ctrl+o and prefix+ctrl+shift+o (reversed)
# default
# rename window with prefix-n
# rename windows/sessions with prefix-n-<w|s>
unbind n #DEFAULT KEY: Move to next split-window
bind n command-prompt "rename-window '%%'"
bind -T prefix n switch-client -T naming_table
bind -T naming_table s command-prompt "rename-session '%%'"
bind -T naming_table w command-prompt "rename-window '%%'"
# set the first window id to 1, I know computer scientists always start from 0, but 0 is so far away from my left hand.
# remember: prefix-{digit} brings you to the window with the id {digit}