# 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: 1. Click the search icon or press `/` 2. Type to filter visible files 3. Results update as you type 4. Press `Escape` to 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 1. Right-click in the file browser 2. Select **New File** 3. Enter filename with extension 4. File is created and opened for editing ### Create Folder 1. Right-click in the file browser 2. Select **New Folder** 3. Enter folder name 4. Folder is created in current directory ### Rename 1. Right-click a file or folder 2. Select **Rename** 3. Enter new name 4. Press Enter to confirm ### Delete 1. Right-click a file or folder 2. Select **Delete** 3. 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: 1. Open the target folder 2. Drag files from your computer 3. Drop into the file browser area 4. 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: 1. Click the download icon in the file browser header 2. Choose **Current Directory** or **Entire Repository** 3. Review the confirmation dialog showing what will be downloaded 4. Click **Download** to begin 5. Wait while the ZIP archive is created (progress indicator shown) 6. ZIP automatically downloads to your computer ### Archive Features The ZIP archives: - Respects `.gitignore` - ignored files are excluded - Excludes `.git` directory - 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