From 42c7ff9c1e8aad5ff6f85ce43815630013d243d3 Mon Sep 17 00:00:00 2001 From: aguil Date: Sat, 11 Jul 2026 22:56:04 -0600 Subject: [PATCH] feat(tmux): install tmux-tmuxr via TPM instead of local checkout Load aguil/tmux-tmuxr as a TPM plugin and drop the conditional dev-path run lines; keep work session shortcut and status-line integration. --- dot_tmux.conf.tmpl | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/dot_tmux.conf.tmpl b/dot_tmux.conf.tmpl index c1986e5..efa97f4 100644 --- a/dot_tmux.conf.tmpl +++ b/dot_tmux.conf.tmpl @@ -116,8 +116,7 @@ set-option -g @plugin "tmux-plugins/tmux-resurrect" set-option -g @plugin "tmux-plugins/tmux-continuum" set-option -g @plugin "sainnhe/tmux-fzf" set-option -g @plugin "janoamaral/tokyo-night-tmux" - -{{ $tmuxr := joinPath .chezmoi.homeDir "dev/projects/tmuxr/tmux-tmuxr" }} +set-option -g @plugin "aguil/tmux-tmuxr" # Match Neovim tokyonight-night (see dot_config/nvim/init.lua). set-option -g @tokyo-night-tmux_theme "night" @@ -131,29 +130,21 @@ set-option -g @tokyo-night-tmux_zoom_id_style "none" set-option -g @continuum-restore "on" set-option -g @continuum-save-interval "10" set-option -g @resurrect-capture-pane-contents "on" -{{ if stat $tmuxr }} # work reconciles agent state after restore; relaunch agents explicitly. set-option -g @resurrect-processes "false" -{{ end }} - -# Install plugins with: prefix + I -run "~/.tmux/plugins/tpm/tpm" - -# Paste clipboard image into agent prompt (prefix + p). Injects @path via run-shell. -bind-key p run-shell "paste-image-agent.sh --inject '#{pane_id}'" -{{ if stat $tmuxr }} -# work agent workspace (tmux-tmuxr). Build: cd ~/dev/projects/tmuxr/work && npm run build +# work agent workspace (tmux-tmuxr). Requires: npm install -g @aguil/work # prefix + Shift+S — track session and scan agents; prefix + Shift+W — toggle sidebar. -# Loaded via run (TPM does not support file:// plugin paths). # # Sidebar session labels must match the prefix + s choose-tree -K alphabet above. set-option -g @work-session-shortcut-keys "0123456789abcdegiopu" set-option -g @work-session-shortcut-index choose-order -# tmux-tmuxr: hooks, keybindings, daemon (local dev checkout). -run "bash {{ $tmuxr }}/tmux-tmuxr.tmux" +# Install plugins with: prefix + I +run "~/.tmux/plugins/tpm/tpm" + +# Paste clipboard image into agent prompt (prefix + p). Injects @path via run-shell. +bind-key p run-shell "paste-image-agent.sh --inject '#{pane_id}'" # Prepend work agent counts to status-right (after theme plugins). -run 'bash {{ $tmuxr }}/scripts/append-status.sh' -{{ end }} +run-shell "bash ~/.tmux/plugins/tmux-tmuxr/scripts/append-status.sh"