Files
CodeNomad/tasks/todo/021-file-attachments.md
Shantur Rathore b06b8104a5 Add task specifications for Phase 5 advanced input features
- 015-keyboard-shortcuts.md (completed)
- 020-command-palette.md (completed)
- 021-file-attachments.md (next: @mentions, drag-drop, chips)
- 022-long-paste-handling.md (summarize long pastes)
- 023-symbol-attachments.md (LSP integration)
- 024-agent-attachments.md (agent context)
- 025-image-clipboard-support.md (image handling)
2025-10-23 21:40:19 +01:00

41 lines
933 B
Markdown

---
title: File Attachments
description: Add @mentions, drag & drop, and chips for files.
---
Implement File Attachments
---
### Implement @ Mentions
When a user types `@` in the input field, display a file picker with search functionality.
Allow users to select files to attach to their prompt.
---
### Visual Attachment Chips
Display attached files as interactive chips above the input area.
Chips should include a filename and a removable "x" button.
---
### Drag and Drop Files
Enable dragging files from the operating system directly onto the input area.
Automatically create an attachment chip for dropped files.
---
### Acceptance Criteria
- Typing `@` brings up a file selection autocomplete.
- Files can be selected and appear as chips.
- Users can drag and drop files onto the input, creating chips.
- Attached files are included in the prompt submission.
- Attachment chips can be removed by clicking "x".