Skip to content

docs(openspec): scaffold change + plan for tmux-menu-smart-top-row#145

Merged
NagyVikt merged 2 commits into
mainfrom
agent/claude/tmux-menu-smart-top-row-2026-05-16-01-28
May 15, 2026
Merged

docs(openspec): scaffold change + plan for tmux-menu-smart-top-row#145
NagyVikt merged 2 commits into
mainfrom
agent/claude/tmux-menu-smart-top-row-2026-05-16-01-28

Conversation

@NagyVikt
Copy link
Copy Markdown
Contributor

Automated by gx branch finish (PR flow).

NagyVikt and others added 2 commits May 16, 2026 01:30
…ck menu

When the operator drags a selection in a pane the resulting tmux buffer
makes "Copy selection" the obvious next action; symmetrically, when the
system clipboard already holds content, "Paste clipboard" is the obvious
next move. Promote both to the top of the MouseDown3Pane menu so a single
Enter activates the smart row instead of arrow-down navigation through
Copy word / whole pane / visible / line.

- New first row: "Copy selection" with a buffer_sample preview, auto-
  disabled (- prefix) when buffer_size == 0. Activates on Enter only.
- Promote Paste clipboard from mid-menu to immediately below; key `p`
  preserved and Paste row is no longer duplicated lower in the menu.
- Add explicit blank separator row after the two smart rows so the rest
  of the menu (Copy word/whole/visible/line, Scroll, Split, Zoom, Swap,
  Mark, Respawn, Kill, Help) keeps its prior order.

Verification:
- bash -n scripts/codex-fleet/style-tabs.sh -> exit 0
- shellcheck (docker koalaman/shellcheck:stable) -> exit 0, only the
  pre-existing SC1091 info note on line 48 (identical to main).
- tmux source-file of the extracted MouseDown3Pane block in a dummy
  session -> exit 0.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Guardex agent-branch-start created these workspace scaffolds; commit
them so the source worktree is clean before `gx branch finish`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@NagyVikt NagyVikt merged commit 7a559b4 into main May 15, 2026
@NagyVikt NagyVikt deleted the agent/claude/tmux-menu-smart-top-row-2026-05-16-01-28 branch May 15, 2026 23:32
NagyVikt added a commit that referenced this pull request May 16, 2026
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.

Co-authored-by: NagyVikt <nagy.viktordp@gmail.com>
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