Skip to content
DS-argusPublic

About

A native, keyboard-first PDF reader for macOS with Vimium-style link hints and Vim-style navigation. Read-only and customizable.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Modeleaf app icon

Modeleaf

A native, read-only macOS PDF viewer — keyboard-first, Vim-flavored, with native tabs and a minimal interface.

Windows: Modeleaf for Windows is actively evolving. See its README for current features and limitations.

Korean

modeleaf-readme-demo.mp4

Philosophy

  • Read-only. No annotations, editing, or saving. The source PDF is never modified.
  • Keyboard-first. Inspired by Sioyek, SumatraPDF, Vimium, and the Markdown TUI Leaf, while staying deliberately focused on reading.
  • Configurable. Adjust reading preferences and key bindings in the keyboard-accessible Settings window; foundational navigation remains available.

Key features

  • Keyboard-first navigation, search, link hints, and embedded-outline TOC
  • Native tabs and a recent-file picker
  • Password-protected local PDFs with a native secure prompt; passwords are never saved
  • Command palette and seven built-in themes
  • Fit, zoom, rotation, history, and system printing
  • Keyboard-operated shortcut settings with conflict checks, defaults and per-action reset

Experimental Features

Citation preview

Preview cited references without leaving the text you are reading.

  • Enable: Press Shift+C to toggle. It defaults to OFF, and your choice is saved.
  • Use: Press f to show hints inside the active pane, then select a citation link. Press f again (or Esc) to dismiss hints, including after a partial label. Hint labels never contain f.
  • Navigate: Use h / l or Tab / Shift+Tab to switch references, Enter to jump to the reference, Shift+Enter to search for it on Google Scholar, and Esc to close.
  • Representative citation formats: Support focuses on formats commonly used in AI conference papers, such as [1], [1,3], [1–3], (1; 2), (Author, 2020), (Author, 2020a,b), and [HKR16; Pat+23].

The PDF must contain existing internal citation links. Depending on its link structure, text, and layout, some references may be unavailable or extracted incorrectly. Superscript citations and citations without links are outside the supported scope.

View citation preview screenshot

Citation preview showing Pearl and Mackenzie 2018 in Counterfactual Structural Causal Bandits

Install

brew tap DS-argus/tap
brew trust DS-argus/tap
brew install --cask modeleaf

Requires macOS 14 (Sonoma) or newer.

This build is ad-hoc signed and not yet Apple-notarized. On first launch, allow it in System Settings → Privacy & Security → Open Anyway.

Command line

The Homebrew cask installs the modeleaf command alongside the app.

modeleaf                         # launch or activate Modeleaf
modeleaf document.pdf            # open a PDF in the existing app
modeleaf *.pdf                   # open multiple PDFs as tabs
modeleaf --new document.pdf      # open in a separate app instance
modeleaf update                  # update through Homebrew
modeleaf remove                  # uninstall without deleting configuration
modeleaf --version               # or: modeleaf -v
modeleaf --help

Shells expand globs before Modeleaf receives them. Use modeleaf open -- <path> when a path starts with a hyphen or matches a command name.

Update

Use Modeleaf's update command so the installed CLI and cask stay in sync:

modeleaf update

If Homebrew reports that Modeleaf is already up to date while a newer release is listed on GitHub, refresh its metadata and retry:

brew update --force
modeleaf update

Modeleaf checks GitHub Releases at launch but never updates itself.

Keys (defaults)

Action Key
Scroll / large scroll h j k l / d u
Previous / next page p / n
First / last page gg / G
Go to page g, number, Enter
Back / forward Ctrl+o / Ctrl+i
TOC / move / jump t / J K / number
Search / next / previous result / / Enter / Shift-Enter
Link hints / indicator settings f / I
Fit width / page w / F
Zoom / rotate = - / [ ]
Copy PDF path / reveal in Finder yy / of
Open / close / print / quit ⌘o / ⌘w / ⌘p / ⌘q
Previous / next tab P / N
Split / focus pane Ctrl-b | Ctrl-b - / Ctrl-h/j/k/l
Theme / palette / help T / : / ?

y previews the full PDF path; yy copies it and adds copied!. Each input refreshes the three-second display; the default key-sequence timeout remains 400 ms. Long paths are middle-truncated with the full path available in a tooltip.

External URL hints display the destination URL on selection. Press Enter once to open it, or Escape to close the prompt. Held-key repeats do not open links. Internal PDF destinations are unchanged.

The status bar adapts down to the existing 480 × 360 pt minimum window: it keeps every item on one line, prioritizes temporary path/key feedback and compact search results, and hides lower-priority basic items in order (version, help, zoom, fit badge, page). Optional notices and update text appear only when they fit. Errors that do not fit retain an Error button for their full details.

Configuration

Press Cmd+, to open Settings, with General and Key Bindings sections. Use j/k in the sidebar, l/Enter to enter the first right-hand row, and h to return. Only one row is highlighted at a time. Enter edits/confirms a row; Esc cancels an active edit. Otherwise Esc closes Settings, asking about unsaved changes: Esc continues editing, n discards and closes, y saves and closes. h/l or left/right selects a choice; Enter activates it (Save and Close is initially selected). Apply/Discard remain available for both sections, and Restore Defaults prepares a default draft.

Modeleaf manages ~/Library/Application Support/Modeleaf/settings.json, saving only differences from built-in defaults. Direct file editing is not a supported settings interface. Theme and link-indicator pickers remain separate for this release. See CONFIG.md for the keyboard and validation rules.

Compatibility change: Existing ~/.config/modeleaf/config.toml files are no longer read or migrated, and are not deleted. Reconfigure preferences in Settings. Write Default Config, Reload Config, and Reset Config commands have been removed; the settings window replaces them.

Build from source

APP=$(Tools/build_release_app.sh | tail -n 1)
open "$APP"

For development, use swift run Modeleaf. Run Tools/verify.sh full before opening a pull request.

Release preparation

For each release, maintainers add release-notes/<version>.txt (without the v tag prefix), for example release-notes/0.13.0.txt. Write 2-5 concise English, user-facing bullets based on the actual changes since the preceding release; each non-empty line must be a Markdown bullet beginning with - , and placeholders are not accepted.

Push only the matching v<version> tag, such as v0.13.0. The workflow verifies the tag, runs tests, packages the app, creates or updates a draft release with one ## Highlights section plus GitHub's generated details, updates Homebrew, and then publishes. Rerunning a tag refreshes only its draft and keeps generated notes; an already-published release is never rewritten.

License

Modeleaf is available under the MIT License.

Theme palette attributions: ThemeAttributions.md

About

A native, keyboard-first PDF reader for macOS with Vimium-style link hints and Vim-style navigation. Read-only and customizable.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages