fix(tmux): move clear macro off C-k to C-/ so apps get Ctrl+K#316
Closed
drn wants to merge 1 commit into
Closed
Conversation
bind -n C-k was swallowing Ctrl+K at the tmux root table, rewriting it to Ctrl+L before TUI apps (e.g. the argus task switcher) could see it. Move the clear-screen+history macro to Ctrl+/, bound as both C-/ and C-_ to cover terminal encoding variants. Ctrl+K now passes through to the running program. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Owner
Author
|
Superseded: the tmux clear-macro rebind already landed on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
bind -n C-kinhome/tmux.confwas swallowing Ctrl+K at the tmux root key table and rewriting it to Ctrl+L before any TUI app could see it — which broke the argus task switcher (and any other app that wants Ctrl+K).This moves the clear-screen +
clear-historymacro off Ctrl+K onto Ctrl+/, bound as bothC-/andC-_to cover the two ways terminals encode Ctrl+/. Ctrl+K now passes straight through to the running program.Why on master
This change was already live in the running tmux server and committed to the
rootbranch of the main checkout, butrootis a stale shadow ofmasterand this is the only genuinely new commit on it. Landing it here puts it on the primary branch.Verification note
If your terminal uses the Kitty keyboard protocol (ghostty, kitty, recent WezTerm/foot), Ctrl+/ may arrive as a CSI-u sequence that neither
C-/norC-_catches — confirm Ctrl+/ actually clears, and switch to a plain Ctrl+letter if not.🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com