Skip to main 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.

MarkView provides multiple convenient methods to open and view your Markdown files. Choose the method that best fits your workflow.

Methods to Open Files

The upload button provides a traditional file picker interface for selecting Markdown files.
1

Locate the Upload Button

In the left sidebar, you’ll find an upload button (upward arrow icon) at the top of the interface.
2

Click to Select Files

Click the upload button to open your system’s file picker dialog.
3

Choose Files

Select one or multiple Markdown files (.md or .markdown extensions).
You can select multiple files at once by holding Ctrl (Windows/Linux) or Cmd (Mac) while clicking.
4

View Your Files

Once loaded, your files will appear in the sidebar file list. Click any file to view its contents.
The upload functionality is implemented using Tauri’s native dialog plugin:
// From app/page.tsx:595-610
const handleFileInput = async (e: React.ChangeEvent<HTMLInputElement>) => {
  try {
    const selected = await open({
      multiple: true,
      filters: [{ name: 'Markdown', extensions: ['md', 'markdown'] }]
    });
    if (selected) {
      const paths = Array.isArray(selected) ? selected : [selected];
      for (const path of paths) {
        await loadFileFromPath(path);
      }
    }
  } catch {
    handleFileUpload(e.target.files);
  }
};

Supported File Types

MarkView accepts the following file extensions:
  • .md - Standard Markdown files
  • .markdown - Alternative Markdown extension
Files with other extensions will be ignored, even if they contain Markdown content.

File Management

Duplicate Prevention

MarkView automatically prevents duplicate files from being loaded:
// From app/page.tsx:446-450
setFiles(prev => {
  const existingNames = new Set(prev.map(f => f.name));
  if (existingNames.has(fileData.name)) return prev;
  return [...prev, newFile];
});
If you try to load a file that’s already open, MarkView will skip it silently.

File Identification

Each loaded file gets a unique ID to handle files with the same name:
// From app/page.tsx:442
const newFile: MarkdownFile = {
  id: `${fileData.name}-${Date.now()}-${Math.random()}`,
  name: fileData.name,
  content: fileData.content,
};

Empty State

When no files are loaded, MarkView displays a helpful empty state with instructions:

No Files Loaded

Upload files, a folder, or drag and drop markdown files here
This empty state appears in the main content area and provides visual guidance for getting started.

Next Steps

Navigation

Learn how to navigate between files and use the search features

Command Line

Master the CLI interface for power users