fix(tmux-menu): keep mouse selection visible after drag-release#147
Merged
NagyVikt merged 1 commit intoMay 15, 2026
Merged
Conversation
Operator complaint: highlighting text via mouse drag flashed for ~50ms then auto-hid because tmux's MouseDragEnd1Pane bound `copy-pipe-and- cancel` (which exits copy-mode + clears the highlight). The newly-shipped right-click "Copy selection" row (PR #145) needs the selection to STAY visible long enough to right-click + commit. Surgical change in scripts/codex-fleet/style-tabs.sh: 1. MouseDragEnd1Pane swaps `copy-pipe-and-cancel` → `copy-pipe-no-clear`. Selection persists in copy-mode after release; buffer is still populated (so the menu's `#{buffer_sample}` preview still works); user dismisses with Esc, a new drag, or by clicking "Copy selection". 2. Smart-top "Copy selection" command appends `send-keys -X cancel` before the toast so clicking it copies + cleanly exits copy-mode in one go (no stuck-in-copy-mode after the menu dismisses). Explicit-commit gestures (Enter, y, double-click, triple-click) intentionally KEEP `copy-pipe-and-cancel` — those are "I'm done" and should still drop back to normal mode immediately.
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.
Automated by gx branch finish (PR flow).