MarkView provides multiple intuitive ways to load and manage your markdown files. Whether you’re working with a single document or an entire folder of files, MarkView makes it easy to organize and navigate your content.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/sureshamal/markview/llms.txt
Use this file to discover all available pages before exploring further.
Loading Files
MarkView supports several methods for loading markdown files:Drag & Drop
Drag markdown files or folders directly into the window
File Upload
Use the upload button in the sidebar to select individual files
Folder Upload
Load entire folders with the folder upload button
CLI Arguments
Pass file or folder paths when launching the app
File Search
Quickly find files with
Ctrl+K command paletteSidebar Navigation
Click any file in the sidebar to view it
Drag and Drop Support
MarkView implements comprehensive drag-and-drop functionality for seamless file loading.
Implementation: page.tsx:647-671
Drop events are handled on the root
div element, so you can drop files anywhere in the application window.Upload Buttons
The sidebar features two upload buttons for loading content:File Search Modal
The searchable file picker provides quick navigation across all loaded files.Opening the Search
- Keyboard Shortcut
- Search Bar Click
Press
Ctrl+K (Windows/Linux) or Cmd+K (Mac) to open the search modal.This is the fastest way to switch between files.Using the Search
Implementation: page.tsx:963-1054 The search modal provides:- Fuzzy Search: Type to filter files by name (case-insensitive)
- Keyboard Navigation: Use
↑and↓to navigate results - Quick Selection: Press
Enterto open the highlighted file - Visual Feedback: Selected item highlighted with primary color
- File Icons: Each file shows a document icon for easy scanning
Sidebar File List
All loaded files appear in the sidebar below the upload buttons. Features:File Display
File Display
- Shows file count:
Files (X) - Displays full file names (with paths if from folders)
- Truncates long names with ellipsis
- Scrollable list for many files
Selection State
Selection State
The currently selected file is highlighted:
- Background: Primary theme color
- Text: Contrasting color for readability
- Smooth transition animation
Empty State
Empty State
When no files match the search query, a message appears:
“No matching files”This helps users understand that their search has no results.
Duplicate Handling
MarkView prevents duplicate files from being loaded based on filename: Implementation: page.tsx:446-450, 533-536CLI Arguments
When running as a Tauri desktop app, you can pass file or folder paths as command-line arguments. Implementation: page.tsx:483-500This feature only works in the Tauri desktop version. The web version gracefully skips this step.
File Structure
Each file in MarkView is represented as aMarkdownFile object:
Auto-Selection
When files are loaded, MarkView intelligently selects which file to display:- First file loaded: Automatically selected if no file is currently open
- Additional files: Selection stays on current file
- CLI/Tauri loads: First file from the loaded set is selected
Supported File Extensions
MarkView accepts files with these extensions:.md- Standard markdown extension.markdown- Alternative markdown extension