feat(tmux): mappings for rename windows and sessions
This commit is contained in:
parent
cc64d8a279
commit
a8f8e8bad1
@ -45,6 +45,9 @@ bind Q confirm-before -p "kill current window? (y/n)" "kill-window"
|
|||||||
bind C-q confirm-before -p "kill other windows? (y/n)" "kill-window -a"
|
bind C-q confirm-before -p "kill other windows? (y/n)" "kill-window -a"
|
||||||
|
|
||||||
|
|
||||||
|
bind r command-prompt -I '#W' -p "New window name:" "rename-window '%%'"
|
||||||
|
bind R command-prompt -I '#S' -p "New session name:" "rename-session '%%'"
|
||||||
|
|
||||||
# SSH Session
|
# SSH Session
|
||||||
bind h command-prompt -p "Remote host:" "new-session -n 1 -s 'ssh-%1' -A ssh %1"
|
bind h command-prompt -p "Remote host:" "new-session -n 1 -s 'ssh-%1' -A ssh %1"
|
||||||
|
|
||||||
@ -69,8 +72,7 @@ bind l confirm-before -p "lock tmux? (y/n)" lock-session
|
|||||||
|
|
||||||
|
|
||||||
# Reload config
|
# Reload config
|
||||||
bind r reload-config
|
bind F5 reload-config
|
||||||
bind R if-shell "git -C ~/dotfiles pull" "source-file '$HOME/.config/tmux/tmux.conf' \; display-message 'Config reloaded...'" "display-message 'Error while fetching config'"
|
|
||||||
|
|
||||||
|
|
||||||
# Panes navigation
|
# Panes navigation
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user