diff --git a/tmux/.config/tmux/tmux.conf.local b/tmux/.config/tmux/tmux.conf.local index 0e11651..6475902 100644 --- a/tmux/.config/tmux/tmux.conf.local +++ b/tmux/.config/tmux/tmux.conf.local @@ -427,6 +427,12 @@ set -g mode-keys vi # display a message after toggling mouse support 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 bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"