Skip to content

fix(tmux-menu): keep mouse selection visible after drag-release#147

Merged
NagyVikt merged 1 commit into
mainfrom
agent/claude/selection-persists-after-drag-2026-05-16-01-58
May 15, 2026
Merged

fix(tmux-menu): keep mouse selection visible after drag-release#147
NagyVikt merged 1 commit into
mainfrom
agent/claude/selection-persists-after-drag-2026-05-16-01-58

Conversation

@NagyVikt
Copy link
Copy Markdown
Contributor

Automated by gx branch finish (PR flow).

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.
@NagyVikt NagyVikt merged commit 0abd374 into main May 15, 2026
@NagyVikt NagyVikt deleted the agent/claude/selection-persists-after-drag-2026-05-16-01-58 branch May 16, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant