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
feat(chat): Add drag & drop file attachment with Shift key guidance
Implement drag-and-drop file attachment functionality for the chat input.
Features:
- Drag & drop support for images and general files
- Image files saved to .claude/claude-code-chat-images/
- General files saved to .claude/claude-code-chat-files/
- Automatic filename sanitization (special chars → underscores)
- .gitignore auto-creation for temp directories
- Visual feedback with border highlight on dragover
- Real-time tooltip guidance for Shift key requirement
- Without Shift: "⌨️ Hold Shift key to attach"
- With Shift: "📎 Release to attach file"
Technical details:
- VS Code webview requires Shift key for file path insertion (native limitation)
- Cannot override this behavior due to Electron layer interception
- Tooltip provides clear UX guidance for the platform constraint
Changes:
- src/script.ts: Add drag/drop handlers, tooltip functions, filePath handler
- src/extension.ts: Add createFile message handler and _createFile method
- src/ui-styles.ts: Add .drag-over and .drag-tooltip styles
- package.json: Bump version to 1.0.8
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments