Skip to content

CPLAT-9497: add copy action and preserve selection on refresh in conv views#34

Merged
gavin-jeong merged 3 commits into
masterfrom
CPLAT-9497-conv-copy-and-refresh-selection
Apr 29, 2026
Merged

CPLAT-9497: add copy action and preserve selection on refresh in conv views#34
gavin-jeong merged 3 commits into
masterfrom
CPLAT-9497-conv-copy-and-refresh-selection

Conversation

@gavin-jeong
Copy link
Copy Markdown
Collaborator

JIRA: https://sendbird.atlassian.net/browse/CPLAT-9497

Summary

  • add a configurable copy action (default c) in the conv/detail actions menu that copies the currently selected blocks (or the cursor block) to the clipboard
  • preserve list cursor, fold state, block cursor/selection, and viewport offset when refreshing the conversation
  • add a refresh handler for the message-full view that keeps fold state and block cursor stable
  • add regression tests for the copy action and conversation refresh selection preservation

Test plan

  • go test ./internal/tui/...
  • manually verify x → c copies selection in conv and detail views
  • manually verify R refresh keeps cursor/selection in conv and detail views

gavin-jeong and others added 2 commits April 30, 2026 01:19
Keep preview-focused actions and space handling scoped to the right pane so existing left-list selections do not leak into preview interactions.
pbcopy is macOS-only; the new copy-action tests fail on Linux CI because
clipboard writes always error. Extract clipboardWrite as a package-level
var so tests can stub it out with a no-op.

https://claude.ai/code/session_015i97MuJJnD1Qc6qcLyeo2K
@gavin-jeong gavin-jeong merged commit 86c3004 into master Apr 29, 2026
3 checks passed
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.

3 participants