Skip to content

feat: add file creation from FileTree context menu#336

Merged
rjroy merged 1 commit intomainfrom
feat/332-create-file
Jan 17, 2026
Merged

feat: add file creation from FileTree context menu#336
rjroy merged 1 commit intomainfrom
feat/332-create-file

Conversation

@rjroy
Copy link
Copy Markdown
Owner

@rjroy rjroy commented Jan 17, 2026

Summary

  • Add "Create File" option to directory context menu in FileTree
  • Opens dialog for entering file name (alphanumeric with - and _ only)
  • Creates empty markdown file with .md extension added automatically
  • Follows same pattern as existing "Add Directory" feature

Closes #332

Test plan

  • Right-click a directory in Recall tab, select "Create File"
  • Enter a valid file name (e.g., my-new-note)
  • Verify empty .md file is created in the selected directory
  • Verify directory listing refreshes to show new file
  • Test validation rejects names with spaces or special characters
  • Test duplicate file name shows error

🤖 Generated with Claude Code

Add "Create File" option to directory context menu that creates empty
markdown files. File names are restricted to alphanumeric characters
with hyphens and underscores, and the .md extension is added automatically.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 17, 2026

Codecov Report

❌ Patch coverage is 76.57143% with 41 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
backend/src/handlers/browser-handlers.ts 0.00% 26 Missing ⚠️
frontend/src/components/BrowseMode.tsx 46.66% 8 Missing ⚠️
frontend/src/components/FileTree.tsx 86.79% 7 Missing ⚠️

📢 Thoughts on this report? Let us know!

@rjroy rjroy merged commit de6c44f into main Jan 17, 2026
2 checks passed
@rjroy rjroy deleted the feat/332-create-file branch January 17, 2026 16:30
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.

Create File option

1 participant