Skip to content
Oleaflyv0.4.1

Write LaTeX, Typst, and Markdown with source and visual editing, project navigation, and a PDF beside your draft.

Oleafly brings source editing, document navigation, and PDF preview into one workspace. Its CodeMirror editor supports LaTeX, Typst, and Markdown. Line numbers, soft wrapping, bracket matching, and an active-line highlight are always on; everything else on this page is a click or a shortcut away.

Shortcuts below show the macOS key first; on Windows and Linux, read ⌘ as Ctrl.

LLaMA open in Oleafly. The file tree is on the left, the LaTeX source in the middle, and the compiled paper on the right.
LLaMA open in Oleafly. The file tree is on the left, the LaTeX source in the middle, and the compiled paper on the right. Open full screenshot

Each document engine has its own toolbar and source syntax. These guides explain every control and include a manuscript you can paste and compile:

Controls that do not fit in the editor width move into More formatting options (). The workspace controls below apply across your writing sessions.

Sticky context keeps the enclosing section or environment visible as you scroll. The project outline helps you move between chapters, while reference and citation navigation take you to the source behind a symbol. Autocomplete includes package-aware LaTeX commands, math input, and citation details.

Press ⌘F for a VSCode-style widget in the top-right corner of the editor:

  • Match case (Aa), whole word (ab), and regular expression (.*) toggles
  • A live match counter (3 of 41), with No results and Invalid states, capped at 2000+ for huge documents
  • Enter jumps to the next match, Shift+Enter to the previous, Esc closes
  • Select all matches turns every match into a cursor for simultaneous editing
  • The chevron expands the Replace row: replace next, replace All, and a Preserve case toggle that maps the original token’s casing onto the replacement (so replacing figure with image also turns Figure into Image)

Click the arrow in the gutter to collapse a \begin…\end environment (nesting-aware) or a section (it folds until the next section of the same or higher level). Fold a chapter while editing a later section.

The editor supports multiple selections: Alt-drag for a rectangular (column) selection, and Select all matches in the find widget for one cursor per match. Every cursor types, deletes, and pastes together.

Four-space indent unit with auto-indent as you type. Tab indents (or accepts the open autocomplete suggestion). Brackets and quotes auto-close, backspace removes pairs together, and the matching bracket highlights at the cursor.

Settings, General, Vim mode (or run “Enable vim mode” from the ⌘K palette) switches on full Vim keybindings: hjkl, operators and text objects (dd, ciw), :w, visual mode, and other Vim editing commands. It applies live, no restart, and all the Oleafly shortcuts on this page keep working alongside it.

Enable Visual editor in Settings → Experimentation. LaTeX and Markdown documents then have a Code / Visual toggle at the start of the toolbar. Visual mode renders the document body as formatted text you edit directly: headings, paragraphs, bold and italic, lists, blockquotes, and links.

Use Visual for a prose pass and Code for document structure or custom commands. Unsupported LaTeX constructs remain editable source blocks. Typst documents use source editing. Review the source and compiled output when working with complex markup.

The editor checks structural problems as you type, before any compile:

  • \end{itemize} without a matching \begin, or mismatched pairs (expected \end{figure}, got \end{table})
  • Unclosed environments
  • Duplicate \label{} keys
  • An odd number of $ on a line (almost always a forgotten math delimiter)

Errors get red squiggles, warnings amber, with markers in the gutter. Compile errors from the actual LaTeX run appear separately in the Logs pane, and Preflight adds its own source-level checks inline.

Run Word count from the ⌘K palette for words, characters, and lines in the active file.

Files open with highlighting matched to their extension: BibTeX, Markdown, JSON, YAML, TOML, CSS, shell scripts, and more. Images and PDFs open as rendered views instead of text, and binary formats are protected from accidental corruption; see Files & folders.

Image preview

AI answers couldn’t load

Try again, or search the documentation.