# Follow citations and search every open paper.

> Keep twenty papers in one lazy repo stack, follow references without leaving your terminal, and jump straight to any phrase across every open document.

- Canonical URL: https://hoja.crafter.run/docs/citations
- Version: 0.2.1

## Press ; to jump or queue citations.

In reading mode, press ; and hoja overlays color-coded, prefix-free hint chips on every visible PDF link AND every plain-text arXiv:YYMM.NNNNN mention in the reference list.

| Chip color | Target type | Behavior |
| --- | --- | --- |
| sky | Internal anchor (outline, equation, footnote) | Jumps inside the current document; Backspace returns |
| mint | arXiv paper, remote PDF, or web article | Lowercase a-z opens in place; uppercase A-Z or Shift+Click fetches in a background worker into your stack |
| amber | External web page | Opens safely in your system browser (file://, javascript:, data:, and PDF Launch are blocked) |

**Unseen badge:** When a background fetch finishes, the status bar flips to an unseen counter (such as 1/2*) so you keep reading without interruption and press ] or b when ready.

## One lazy stack per repository.

```sh
hoja 2305.10601 1706.03762 2005.14165
```

Opening 20+ PDFs boots in roughly 450 ms because pages rasterize lazily and human paper titles are extracted from PDF metadata or page-1 typography. Each document remembers its own page, zoom, crop, and 2up state.

| Key | Action |
| --- | --- |
| b | Document switcher (also opens a new document into the stack) |
| [ / ] or H / L | Walk to previous / next document in the stack |
| ' | Swap back to the last document you viewed |
| Backspace | Walk jump history back inside a paper and across papers |
| F | Search every open document in the stack; Enter jumps to hit |
| S | Toggle side-by-side 2up spread on terminals 160+ columns wide |
| B | Toggle wide sidebar rail (140+ columns, hides below 130) |
| T | Show annotations across the entire stack |
| x | Close the current document |

## The same index for your agent.

```sh
hoja ctl search "scaled dot-product attention" --limit 20 --json
```

The JSON response returns hits containing the 1-based stack index, display title, page number, and text snippet, plus truncated and searched_docs when the stack exceeds one control frame. Empty queries or queries over 200 characters exit 1; --limit clamps to 1..=200.
