From a619e6589ef5f813ebedbcb4e7b390962cd7818e Mon Sep 17 00:00:00 2001 From: publicmatt Date: Mon, 11 May 2026 13:50:43 -0700 Subject: [PATCH] feat(tmux): rebind prefix r to rename window, prefix R to reload frees the more frequent rename action to the lowercase key. --- tmux/.config/tmux/tmux.conf.local | 6 ++++++ 1 file changed, 6 insertions(+) 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"