feat(ux): add clipboard yank (y) with type-aware display#879
Merged
cpcloud merged 5 commits intomicasa-dev:mainfrom Mar 31, 2026
Merged
feat(ux): add clipboard yank (y) with type-aware display#879cpcloud merged 5 commits intomicasa-dev:mainfrom
cpcloud merged 5 commits intomicasa-dev:mainfrom
Conversation
09ea4c3 to
989c0db
Compare
Design spec covers keybinding (y), OSC 52 rationale, edge cases, dashboard blocking, and test matrix. Implementation plan has step-by-step TDD tasks with exact code and expected outputs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Press y in normal mode to copy the focused cell's raw value to the system clipboard via BubbleTea v2's tea.SetClipboard (OSC 52). - Status bar shows "Copied: <value>" with type-appropriate color (money=green, date=accent, text=bright, status=secondary) - Money values copied without currency symbol (Currency.StripSymbol) - Ops cells copy pretty-printed extraction JSON, not the count - Display values sanitized (Unicode control chars, line separators) and truncated to terminal width using grapheme-cluster iteration - Blocked on dashboard to prevent copying from hidden table - statusStyled kind for pre-rendered status messages Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add y keybinding to Nav mode table, clipboard section with OSC 52 terminal configuration requirements (tmux, iTerm2, kitty, etc.). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
989c0db to
4a46460
Compare
Screen does not forward OSC 52 sequences. The previous config (bindkey backspace remap) was unrelated to clipboard support. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
yin normal mode to copy the focused cell's raw value to the system clipboard via BubbleTea v2'stea.SetClipboard(OSC 52)776.53not$776.53)plans/