Opening your first file and exploring the interface
Open a file
Press Ctrl+O on Windows or Linux, or Cmd+O on macOS. The native file picker opens — navigate to any
.md file and confirm. leaftext renders it immediately in the main reading pane.Alternatively:- Drag and drop a
.mdfile from your file manager directly onto the leaftext window. - Recent Files — if you have opened files before, they appear on the no-file view when no document is loaded. Click any entry to reopen it without using the file picker. leaftext remembers the last 8 opened files.
Read the document
Scroll through the document using your mouse wheel, trackpad, or keyboard arrow keys as you normally would in any application.On the right side of the window you will see the minimap: a scaled overview of the entire document with a shaded band showing your current viewport position. Click or drag anywhere on the minimap to jump to that part of the document. Heading markers in the minimap make it easy to navigate long files at a glance.
The minimap is responsive: it becomes narrower on medium-width windows and
hides automatically on small windows to give the document more room.
You can also toggle it from Settings in the app bar.
Open a second file in a new tab
Press Ctrl+O (Windows/Linux) or Cmd+O (macOS) while a document is already open. leaftext opens the new file in a new tab rather than replacing the current one. Switch between tabs by clicking the tab titles in the tab bar at the top of the window.Each tab maintains its own scroll position and navigation history independently.
Navigate history
leaftext records a navigation history for each tab — both documents you have opened and in-document jumps you have made (such as clicking a heading in the minimap). You can move through that history just like a browser:
If your mouse has side buttons, those work too — the back and forward side buttons navigate history without requiring the keyboard.When you go back after a minimap jump, leaftext returns to the scroll position you were at before the jump, not just the top of the previous document.
| Direction | Windows / Linux | macOS |
|---|---|---|
| Back | Alt+← | Cmd+← |
| Forward | Alt+→ | Cmd+→ |
Keyboard shortcuts reference
| Action | Windows / Linux | macOS |
|---|---|---|
| Open file | Ctrl+O | Cmd+O |
| Close tab | Ctrl+W | Cmd+W |
| Navigate back | Alt+← | Cmd+← |
| Navigate forward | Alt+→ | Cmd+→ |
Explore further
Navigation
Learn more about the minimap, tab history, in-document jump tracking, and
mouse side-button support.
Themes
leaftext follows your OS light/dark preference automatically using a
semantic token system. Find out how theming works and what you can
customise.