Skip to content

feat: Add snapshot hover preview in Pair Writing toolbar#382

Merged
rjroy merged 2 commits intomainfrom
feat/snapshot-hover
Jan 21, 2026
Merged

feat: Add snapshot hover preview in Pair Writing toolbar#382
rjroy merged 2 commits intomainfrom
feat/snapshot-hover

Conversation

@rjroy
Copy link
Copy Markdown
Owner

@rjroy rjroy commented Jan 21, 2026

Summary

  • Snapshot now captures selected text, not the entire file
  • Snapshot button is disabled when no text is selected
  • Hover preview shows the snapshotted selection (truncated to 500 chars or 15 lines)
  • Enables targeted before/after comparison for reworked sections

Workflow

  1. Select text you want to rework
  2. Click Snapshot to capture it
  3. Edit the section
  4. Select new version → Right-click → Compare

Test plan

  • Open a file in Pair Writing mode
  • Verify Snapshot button is disabled with no selection
  • Select some text and verify Snapshot button becomes enabled
  • Click Snapshot to capture the selection
  • Hover over Snapshot button to verify preview shows the selected text (not entire file)
  • Verify preview disappears on mouse leave
  • Test with long selection to verify truncation and ellipsis

🤖 Generated with Claude Code

Shows truncated snapshot content (500 chars or 15 lines) when hovering
over the Snapshot button, giving users a quick view of what they captured
without needing to compare.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

The snapshot feature now captures the currently selected text instead of
the entire document. This enables a more useful workflow:
1. Select text you want to rework
2. Click Snapshot to capture it
3. Edit the section
4. Select new version and Compare to see changes

The Snapshot button is now disabled when no text is selected.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@rjroy rjroy merged commit 851ed3e into main Jan 21, 2026
2 checks passed
@rjroy rjroy deleted the feat/snapshot-hover branch January 21, 2026 14:31
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