Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Interactive TUI

The Text-based User Interface (TUI) provides an interactive way to explore and query Markdown files directly in your terminal.

$ mq tui file.md

TUI Features

  • Interactive Querying: Enter and edit queries in real-time with immediate feedback
  • Detail View: Examine the structure of selected markdown nodes in depth
  • Navigation: Browse through query results with keyboard shortcuts
  • Query History: Access and reuse previous queries

TUI Key Bindings

KeyAction
: (colon)Enter query mode
EnterExecute query
Esc / qExit query mode / Exit app
/k, /jNavigate results
dToggle detail view
? / F1Show help screen
Ctrl+lClear query
PgUp/PgDnPage through results
Home/EndJump to first/last result