feat(tmux): rebind prefix r to rename window, prefix R to reload
frees the more frequent rename action to the lowercase key.
This commit is contained in:
@@ -427,6 +427,12 @@ set -g mode-keys vi
|
|||||||
# display a message after toggling mouse support
|
# display a message after toggling mouse support
|
||||||
bind m run "cut -c3- '#{TMUX_CONF}' | sh -s _toggle_mouse" \; display 'mouse #{?#{mouse},on,off}'
|
bind m run "cut -c3- '#{TMUX_CONF}' | sh -s _toggle_mouse" \; display 'mouse #{?#{mouse},on,off}'
|
||||||
|
|
||||||
|
# rename current window (override Oh my tmux! reload-on-r)
|
||||||
|
bind r command-prompt -I "#W" "rename-window '%%'" #!important
|
||||||
|
|
||||||
|
# reload configuration on R instead of r
|
||||||
|
bind R run "sh -c '\"\$TMUX_PROGRAM\" \${TMUX_SOCKET:+-S \"\$TMUX_SOCKET\"} source \"\$TMUX_CONF\"'" \; display "#{TMUX_CONF} sourced"
|
||||||
|
|
||||||
# copy to clipboard on mouse drag release
|
# copy to clipboard on mouse drag release
|
||||||
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
|
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user