From 6c4a947244b7be05496f9d3bd5ad2d00a69cca03 Mon Sep 17 00:00:00 2001 From: Zack Drach Date: Tue, 26 May 2026 03:40:29 -0700 Subject: Add tmux-style double-click word copy (#296) * feat: add tmux-style double-click copy Double-clicking terminal output now selects and copies the token under the cursor, similar to tmux. The copied token briefly stays highlighted as feedback, and token detection handles common shell output like paths, URLs, variables, CJK text, and surrounding punctuation. Mouse events are still forwarded unchanged when the child terminal has mouse reporting enabled. refs #142 * fix: tighten double-click copy refs #142 --------- Co-authored-by: Can Celik --- src/server/headless.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/server') diff --git a/src/server/headless.rs b/src/server/headless.rs index 2b8550b4..4d9a2cc5 100644 --- a/src/server/headless.rs +++ b/src/server/headless.rs @@ -2449,6 +2449,8 @@ impl HeadlessServer { changed = true; } + changed |= self.app.clear_due_selection_highlight(now); + self.app.start_git_status_refresh_if_due(now); if self -- cgit v1.2.3