You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user message contains both text content and attachments (particularly text-based attachments like pasted code), pressing c or y to copy creates ambiguity:
Current behavior: Only message text is copied
User confusion: No visual indication of what will be copied
Scenarios
Pasted long text → Creates paste_1.txt attachment
User may want to copy the original pasted content
OR the message text they typed
Multiple attachments → User may want:
Specific attachment content
All attachments
Message text only
Combined content
Mixed attachments (images + text files) → Different copy needs for each type
Proposed Solution
Phase 1: Index-Based Attachment Selection (MVP)
UX Flow:
[User presses 'c' or 'y' on message with attachments]
↓
[Show ephemeral status: "Press 0-9 to copy attachment, Enter for message text"]
↓
[User presses number → Copy attachment N content]
[User presses Enter → Copy message text (original behavior)]
[User presses Esc → Cancel]
Key Bindings:
State
Key
Action
Normal
c/y
Initiate copy mode if attachments exist
Copy Mode
0-9
Copy attachment at index (if text type) or path (if binary)
Copy Mode
Enter/c/y
Copy message text (default)
Copy Mode
Esc
Cancel copy mode
Copy Mode
a
Copy ALL text attachment contents concatenated
Visual Indicator:
When copy mode is active, temporarily highlight attachments with their index numbers:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem Statement
When a user message contains both text content and attachments (particularly text-based attachments like pasted code), pressing
coryto copy creates ambiguity:Scenarios
Pasted long text → Creates
paste_1.txtattachmentMultiple attachments → User may want:
Mixed attachments (images + text files) → Different copy needs for each type
Proposed Solution
Phase 1: Index-Based Attachment Selection (MVP)
UX Flow:
Key Bindings:
c/y0-9Enter/c/yEscaVisual Indicator:
When copy mode is active, temporarily highlight attachments with their index numbers:
Phase 2: Enhanced Selection UI (Future)
Acceptance Criteria
Must Have (MVP)
c/yon message without attachments copies message text (existing behavior)c/yon message with attachments enters "copy selection mode"0-9) copy specific attachment:Enteror secondc/ycopies message textEsccancels without copyingShould Have
acopies ALL text attachment contents (concatenated with separators)c/ycopies it directly (no selection mode)Code
#2170
Beta Was this translation helpful? Give feedback.
All reactions