tmux renaming is now cooler
This commit is contained in:
parent
16b14188b5
commit
eb7feb543e
|
@ -42,9 +42,11 @@ bind C-J swap-pane -D
|
||||||
# rotate panels with prefix+ctrl+o and prefix+ctrl+shift+o (reversed)
|
# rotate panels with prefix+ctrl+o and prefix+ctrl+shift+o (reversed)
|
||||||
# default
|
# default
|
||||||
|
|
||||||
# rename window with prefix-n
|
# rename windows/sessions with prefix-n-<w|s>
|
||||||
unbind n #DEFAULT KEY: Move to next split-window
|
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.
|
# 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}
|
# remember: prefix-{digit} brings you to the window with the id {digit}
|
||||||
|
|
|
@ -42,9 +42,11 @@ bind C-J swap-pane -D
|
||||||
# rotate panels with prefix+ctrl+o and prefix+ctrl+shift+o (reversed)
|
# rotate panels with prefix+ctrl+o and prefix+ctrl+shift+o (reversed)
|
||||||
# default
|
# default
|
||||||
|
|
||||||
# rename window with prefix-n
|
# rename windows/sessions with prefix-n-<w|s>
|
||||||
unbind n #DEFAULT KEY: Move to next split-window
|
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.
|
# 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}
|
# remember: prefix-{digit} brings you to the window with the id {digit}
|
||||||
|
|
Loading…
Reference in New Issue