* fix: markdown files now default to rendered view and render properly - Add .md and .mdx MIME type support in backend (files.ts, defaults.ts) - Add key props to FilePreview components to force proper remounting when switching files - Fix markdown file detection with case-insensitive extension check - Reset markdownPreview state when file changes to ensure correct default view - Add onContentLoaded callback to VirtualizedTextView for reactive content updates - Add fullContent state to properly handle large markdown file rendering - Add error handling for async content loading to prevent blank screens - Reduce loading timeout from 50ms to 0ms for more responsive loading Fixes issues where: - Markdown files opened in raw view instead of rendered view - Large markdown files (12k+ lines) showed blank after loading completed - State persisted incorrectly when switching between different file types * Add directory download feature with ZIP archive support * Improve voice recording UX with loading states and better transcript handling * Fix auth config for prod/dev ports and add documentation Update AUTH_TRUSTED_ORIGINS and PASSKEY_ORIGIN to use backend port 5003 (frontend uses 5173 in dev). Add comprehensive auth documentation covering secrets, trusted origins, admin reset, and passkeys. Update README and add mkdocs config. * Remove roadmap section from README
3.6 KiB
File Browser
Navigate, view, and manage files within your repositories.
Directory Navigation
Tree View
The file browser displays your repository as an expandable tree:
- Click folders to expand/collapse
- Click files to preview content
- Icons indicate file types
- Modified files are highlighted
Breadcrumbs
Navigate quickly using the breadcrumb path at the top:
- Click any segment to jump to that directory
- Shows current location in the file tree
Search
Filter files by name:
- Click the search icon or press
/ - Type to filter visible files
- Results update as you type
- Press
Escapeto clear search
File Preview
Click any file to preview with:
- Syntax Highlighting - Support for 100+ languages
- Line Numbers - Easy reference for code discussions
- Large File Support - Virtualization for files with many lines
Supported Languages
Syntax highlighting is provided for common languages including:
- JavaScript, TypeScript, JSX, TSX
- Python, Ruby, Go, Rust
- HTML, CSS, SCSS, Sass
- JSON, YAML, TOML, XML
- Markdown, SQL, Shell scripts
- And many more...
File Operations
Create File
- Right-click in the file browser
- Select New File
- Enter filename with extension
- File is created and opened for editing
Create Folder
- Right-click in the file browser
- Select New Folder
- Enter folder name
- Folder is created in current directory
Rename
- Right-click a file or folder
- Select Rename
- Enter new name
- Press Enter to confirm
Delete
- Right-click a file or folder
- Select Delete
- Confirm deletion
!!! warning Deletion is permanent and cannot be undone through the UI. Use git to recover deleted files if needed.
File Upload
Drag and Drop
Upload files by dragging them into the browser:
- Open the target folder
- Drag files from your computer
- Drop into the file browser area
- Files are uploaded to current directory
Multiple Files
You can drag multiple files at once. They'll all be uploaded to the current directory.
Upload Limitations
- Large files may take time to upload
- Binary files are supported
- File permissions are set by the server
ZIP Download
Download directories or repositories as ZIP archives directly from the file browser:
Download Options
Click the download icon in the file browser header to access download options:
Current Directory
- Downloads the folder you're currently viewing
- Includes all subfolders and files
- Useful for archiving specific parts of a project
Entire Repository
- Downloads the complete repository
- Same as the download button on repository cards
- Perfect for full repository backups
Download Process
Both download options follow the same process:
- Click the download icon in the file browser header
- Choose Current Directory or Entire Repository
- Review the confirmation dialog showing what will be downloaded
- Click Download to begin
- Wait while the ZIP archive is created (progress indicator shown)
- ZIP automatically downloads to your computer
Archive Features
The ZIP archives:
- Respects
.gitignore- ignored files are excluded - Excludes
.gitdirectory - Uses compression to reduce file size
- Includes proper file permissions
- Preserves directory structure
!!! note Download confirmation ensures you're downloading the correct content. Large repositories may take time to create the archive.
Large File Handling
For files with many lines, the viewer uses virtualization:
- Only visible lines are rendered
- Smooth scrolling through large files
- Memory-efficient display