MarkView provides powerful keyboard shortcuts to help you work efficiently without reaching for the mouse. All shortcuts work globally within the application.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.
Quick Reference
File Search
Ctrl+K or Cmd+KOpen the file search modal to quickly find and switch between filesTheme Switcher
Alt+TOpen the theme selector to change the app’s appearanceClose Modal
EscClose any open modal (theme selector or file search)Navigate Results
↑ / ↓Navigate up and down through search results or theme optionsDetailed Shortcuts
File Management
Open File Search (Ctrl+K / Cmd+K)
Open File Search (Ctrl+K / Cmd+K)
Opens the command palette-style file search modal.Implementation: page.tsx:382-388What happens:
- Opens the file search modal
- Clears any previous search query
- Resets the selection to the first item
- Automatically focuses the search input
- Press
Ctrl+K(Windows/Linux) orCmd+K(Mac) - Start typing to filter files
- Use arrow keys to navigate
- Press
Enterto open the selected file
Navigate File List (↑ / ↓)
Navigate File List (↑ / ↓)
Open Selected File (Enter)
Open Selected File (Enter)
When a file is highlighted in the search modal, press This immediately switches to the selected file and closes the modal.
Enter to open it.Implementation: page.tsx:420-424Theme Switching
Open Theme Selector (Alt+T)
Open Theme Selector (Alt+T)
Opens the theme selection modal with a searchable list of all themes.Implementation: page.tsx:389-395What happens:
- Opens the theme selector modal
- Clears the search query
- Pre-selects the currently active theme
- Focuses the search input for immediate typing
Navigate Themes (↑ / ↓)
Navigate Themes (↑ / ↓)
Apply Theme (Enter)
Apply Theme (Enter)
Press The theme is applied immediately and saved to localStorage.
Enter to apply the currently highlighted theme.Implementation: page.tsx:405-409Navigation
Close Modal (Esc)
Close Modal (Esc)
Press This works for both the file search modal and theme selector.
Esc to close any open modal without making changes.Implementation: page.tsx:426-429Markdown Navigation
While viewing markdown content, you can use standard browser shortcuts:- Scroll:
Space,Page Down,Page Up, Arrow keys - Find in page:
Ctrl+F/Cmd+F(browser default) - Zoom:
Ctrl/Cmd +,Ctrl/Cmd -,Ctrl/Cmd 0
Table of Contents Links
When you click a link starting with# in the markdown content, it smoothly scrolls to that heading (page.tsx:147-152).
Implementation Notes
All keyboard shortcuts are implemented in a global event listener attached to the
window object (page.tsx:381-434). The listener is cleaned up when the component unmounts to prevent memory leaks.Cross-Platform Compatibility
File search uses(e.ctrlKey || e.metaKey) to work correctly on both:
- Windows/Linux:
Ctrl+K - macOS:
Cmd+K
Focus Management
When modals open, a 50ms timeout ensures the input field is focused after the modal renders:Event Prevention
All shortcuts calle.preventDefault() to avoid triggering browser default behaviors:
Ctrl+Knormally opens browser’s search barAlt+Tmight trigger browser menu itemsEscapemight exit fullscreen mode
Summary Table
| Shortcut | Action | Context | Implementation |
|---|---|---|---|
Ctrl/Cmd+K | Open file search | Global | page.tsx:382 |
Alt+T | Open theme selector | Global | page.tsx:389 |
↑ | Previous item | Modal open | page.tsx:398, 413 |
↓ | Next item | Modal open | page.tsx:401, 416 |
Enter | Confirm selection | Modal open | page.tsx:405, 420 |
Esc | Close modal | Modal open | page.tsx:426 |