feat: enable tmux focus-events for focus tracking#2
Conversation
- Add 'set -g focus-events on' so tmux forwards focus-in/out events to programs in panes (Claude Code, vim/neovim), fixing the 'focus-events off' warning.
|
Complex PR? Review this PR in Change Stack to move by importance, not file order. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughEnables tmux focus event reporting by adding ChangesTmux Focus Events
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~1 minute Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Enables tmux focus event forwarding so applications inside panes can detect terminal focus-in/out, addressing the focus-events off warning (e.g., from Claude Code) and improving editor focus tracking.
Changes:
- Add
set -g focus-events onto the tmux global configuration.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
set -g focus-events ontotmux/tmux.confso tmux forwards terminal focus-in/out events to programs running in panes.tmux focus-events offwarning shown by Claude Code; also benefits vim/neovim focus tracking. Purely additive and reversible.Test plan
tmux source-file ~/.tmux.confthentmux show-options -g focus-eventsreportsfocus-events onfocus-events offwarning no longer appears in a Claude Code pane inside tmuxSummary by CodeRabbit