Docs browser
The Docs view (4) is a markdown reader for logu.ro/docs/* that runs inside the TUI. Pages are fetched on demand, cached locally for 24 hours, and full-text searchable across every page in your library.
Layout
Top: a full-width search bar with a count line below it.
Left sidebar: sectioned page list (general, commands, features, cli, tui, mcp), grouped by category prefix.
Right: the content pane. Either the doc body (when you’ve opened one) or the search results list (when you’ve typed a query).
Open a page
| Key | Action |
|---|---|
↑/↓ or j/k | Move cursor in the list (or scroll body when focused there) |
ctrl+↑/↓ | Jump 10 lines |
enter | Open the highlighted page — focus moves to body |
tab | Switch focus between list and body |
g / G | Top / bottom (list or body, depending on focus) |
The current page is highlighted yellow in the sidebar (●).
Full-text search
Press / to focus the search bar. As you type, the content pane switches to a list of hits ranked by:
- Title match
- Slug match
- Section match
- Body match — score increases with more occurrences
Each result shows up to two highlighted lines (yellow on the match), with line numbers (L42).
| Key | Action |
|---|---|
↑/↓ or j/k | Move between results |
enter | Open the result — sidebar selection syncs |
esc | Clear the query, return to browsing |
Caching
On first open the TUI scrapes the page index from https://logu.ro/docs/ and starts a background prefetch of all pages (6 parallel requests). The sidebar shows indexing X/N while this runs.
Cache lives in ~/.config/loguro/docs-cache/ (or $XDG_CONFIG_HOME/loguro/docs-cache/). Each page is a single .md file named after its slug. Pages are considered fresh for 24 hours; after that they’re re-fetched on next open.
To force a refresh:
ron a page → re-fetch that pageron the empty state → re-fetch the index, then prefetch again
Esc cascade
The Docs view owns esc (doesn’t fall through to the App’s “pop view”):
- Search bar focused → blur + clear query
- Query non-empty → clear query
- Page open → close page, return to Docs root
- No page, no query → pop the view back to whatever was beneath (usually Logs)
That way esc is always “go up one logical level”.
Why this exists
So you don’t have to switch to a browser to look up a flag, a query operator, or a config field. The TUI knows everything the web docs site knows.