prev

A tour of prev

This guide walks through what prev does, in the order you are likely to meet it. Keyboard shortcuts are listed in the README; on macOS, use ⌘ where this guide says Ctrl and ⌥ (Option) where it says Alt, and the menu bar lists each shortcut. Shortcuts can be changed; see Settings.

Documents shown: a sample form, a sample annual report, a sample account statement, a newsletter and a landscape image, all fictional and made for prev.

Opening files

Open files with Ctrl+O, from the file manager's "Open With", from the command line (prev report.pdf photo.jpg), or by dropping them on a prev window (see Drag and drop for drops that do more than open files). Each document gets its own window; images opened together share one window with a thumbnail strip. prev keeps a single running instance, so opening another file from the launcher adds a window instead of starting over. On macOS, files opened from Finder or dropped on prev's icon in the Dock go to the running prev the same way.

Reading PDFs

A PDF with its table of contents in the sidebar

The toolbar holds the page number, zoom, fit to page or width, actual size, and the view mode: continuous scroll, single page or two pages side by side. Image windows share its layout: what is shown and the view on the left, editing, the panels and Export on the right. Ctrl+scroll zooms in and out around the pointer, and pages stay sharp at any zoom because they render in tiles on background threads. Ctrl+drag pans around a zoomed-in view whatever tool is chosen, and in image windows a plain drag on the picture does too (unless the selection tool or markup is in use). The middle mouse button scrolls as in a browser.

The sidebar (the button at the far left, or Ctrl+Alt+2 to 5) has four tabs: page thumbnails, the table of contents, highlights and notes, and bookmarks (Ctrl+D bookmarks the current page). Drag the sidebar's edge to make it wider; the thumbnails grow with it.

Two pages side by side

In two-page mode pages sit in pairs, 1 and 2, 3 and 4, and the arrow keys move a pair at a time.

Searching a PDF, with matches highlighted and page thumbnails in the sidebar

Search (Ctrl+F) highlights every match and counts them as it goes; Ctrl+G and Ctrl+Shift+G step through them. Text can be selected and copied across pages; double-click selects a word and triple-click a line. Links inside the document and to the web work, and Ctrl+Shift+F starts a full-screen slideshow. F11 makes the window full screen; on macOS the View menu's Enter Full Screen does too. The inspector (Ctrl+I) shows the file and the document's details. Ctrl+P prints.

Marking up

A form filled in, marked up with a highlight, shapes, a text box and a note, and signed

The markup toolbar (the pen button on the right, or Ctrl+Shift+A) follows Preview's:

Paste (Ctrl+V) puts an image or text from the clipboard on the current page, whatever tool is chosen: an image at its own size (smaller if it doesn't fit), text as a text box. An image file copied in the file manager (or Finder) pastes as the image; on Linux, pasting images needs wl-clipboard. Pages copied in prev paste as pages instead, after the selected one, when they are the latest thing copied.

Everything is saved as standard PDF annotations that other viewers show and edit. Undo and redo (Ctrl+Z, Ctrl+Shift+Z) cover every change, markup and page edits alike. Their buttons are on the toolbar, and move to the markup bar while it is open.

Forms

Click into text fields and type; checkboxes, radio buttons and drop-down menus work as they do in other viewers. Values are saved into the form so other apps read them.

Signatures

The Sign menu open over a garden plot application, listing a drawn and a typed signature

The Sign menu keeps as many signatures as you like. Click one to place it on the current page, then drag and resize it like any annotation.

Signing "Jordan Example" in blue ink in the Create Signature dialog, then typing the description

Create Signature offers three ways in:

Editing pages

Page 7 of an annual report being dragged above page 6 in the page thumbnails, with a line showing where it will go, then dropped so it becomes page 6

In the page thumbnails, click a page to select it, Ctrl+click to add pages and Shift+click to select a range. Then:

The Pages menu (the stacked-pages button, beside the rotate buttons) has Insert Blank Page, Insert from File, Copy and Paste, Crop to Selection, Select All Pages and Delete. Every page edit can be undone.

Redacting

The contacts page of an annual report with three phone numbers and email addresses marked for redaction, and Apply in the markup bar

The Redact tool marks what should go: drag a box over it, or select text first and then pick the tool. Marks are ordinary annotations until you press Apply and confirm. Applying removes the text, image pixels and drawings under each mark from the file and draws black boxes in their place. The next save rewrites the whole file, so no earlier revision keeps the content, and prev deletes the earlier versions of the file it kept. This cannot be undone.

The same page after applying: black boxes where the marked details were

Exporting

The export dialog with reduce file size and flatten chosen

Export (Export… in the export button's menu, a page with an arrow near the right of the toolbar, or Ctrl+Shift+S) writes a new file:

Tick "Only the selected pages" to export just the pages chosen in the sidebar.

Printing

The export button's menu open over the annual report, with Export… and Print…

The export button opens a menu with Export… and Print…, in document, image and Markdown windows alike. Print… (Ctrl+P) opens the system's print dialog: the desktop's on Linux, through its portal; Windows' print dialog; and on macOS the print panel, whose preview shows the pages as prev draws them.

On Linux, printing needs CUPS and a print dialog portal, such as xdg-desktop-portal-gtk; the packages suggest both without installing them. prev checks nothing until you print. When a print does not go through, it says what is missing: the print dialog, CUPS, or a printer set up, naming one found on the network that is not yet. A printer the dialog only found on the network can stop at "Getting printer information" until it is added in the desktop's printer settings or at localhost:631.

Agents and the assistant can print too, straight to a printer without the dialog, after asking you.

Images

A photo open with the Adjust Colour panel

prev opens PNG, JPEG, GIF (animated too), WebP, AVIF, HEIC, TIFF, BMP, ICO, TGA, PNM, QOI, JPEG 2000, OpenEXR, Radiance HDR and camera RAW. RAW photos open looking like the JPEG the camera would have made: prev compares the RAW with the small JPEG preview the camera stores in the file and gives it the same brightness, contrast and colour balance. The toolbar rotates, flips, crops and resizes (Adjust Size). Adjust Colour (Ctrl+Shift+C) has exposure, contrast, saturation, temperature, tint, sepia, sharpness and levels. Undo and redo are on the toolbar. The inspector (Ctrl+I) shows the file and camera details and can remove location info and edit keywords and a description. Export asks for the format (PNG, JPEG, WebP, TIFF, BMP, TGA, QOI, PPM or OpenEXR) and, for JPEG, the quality, then where to save; the choices are kept for the next export from the window. Print… in the same menu, or Ctrl+P, prints the image. Drop more image files on the window to add them to its thumbnail sidebar.

A landscape photo marked up with an oval around the moon, an arrow and the word Moonrise

Images take markup too: the Markup button (Ctrl+Shift+A) brings up the same markup bar as PDFs, with Sketch, Draw, shapes, text boxes, notes and signatures. Markup stays while the window is open and can be moved, restyled and undone; rotating, cropping and colour changes wait until it is gone. Paste works on images too, and starts the markup if there is none yet. Export draws it into the pixels of the copy you save, at the image's full resolution. Closing the window, or quitting, with markup you haven't exported asks first, with a button to export.

SVG and Markdown

SVG drawings open sharp at any zoom, in the image window. They can't be edited, so the tools that change pixels are greyed out, but Export saves the drawing as a picture in any of the image formats, at its actual size or two or four times larger (Size in the Export dialog, which shows the picture's size in pixels), and it prints as a picture too.

Markdown files show with tables, task lists, syntax highlighted code and images, and reload when the file changes on disk. The toolbar makes the text larger or smaller (Ctrl+= and Ctrl+-, Ctrl+0 for the normal size), searches the document (Ctrl+F, then Enter or the arrows for the next and previous match) and opens the inspector with the file's details and word count. Code is coloured to suit the light or dark look, and pictures show at their own size, shrunk only to fit the page. Export saves the whole document as one picture, in any of the image formats, at its actual size or twice as sharp; very long documents are scaled down to fit the 16,383 pixel height some formats allow. Print (Ctrl+P) puts it on pages; see Printing.

Inspector

A PDF with the inspector open on the right, listing its file name, folder, size and date, its title, author, subject, keywords, producing application, PDF version and security, and its page count and page size

The inspector (the info button on the toolbar, or Ctrl+I) opens a panel on the right with what prev knows about the file. Close it with its close button or Ctrl+I again. Every inspector starts with the file itself: its name, the folder it is in, its size and when it was last changed.

A landscape photo with the inspector open, showing the file, the camera make, model and lens, the exposure time, f-number, ISO and focal length, the date taken, the camera's software and the location's coordinates

Drag and drop

Dragging a photo of Saturn from a Wikimedia Commons page in a browser into the empty photo space of a newsletter PDF open in prev, where it lands as a picture, selected, above its caption

Saturn: NASA/JPL/Space Science Institute, public domain, shown on Wikimedia Commons. The newsletter is a sample made for prev.

Drag and drop works both ways: things dragged into prev land where you let go, and pages, text, areas and images drag out of prev to other prev windows, the file manager and other apps. While a drag that prev can take is over a window, the window is highlighted; over the page thumbnails, a line shows where the pages would go.

Things dropped on the page view land on the page; things dropped on the sidebar (a document's page thumbnails, an image window's images) go there. Hold Ctrl (Control on macOS, not ⌘) while dropping on the page view to send the drop to the sidebar instead, without aiming for it.

Dropping into a document

What you drop On a page On the page thumbnails, or anywhere with Ctrl
An image file It goes on the page as an image, centred where you let go, at its own size (96 pixels to the inch), made smaller if it is larger than 80% of the page. Several image files open together in an image window A new page at the line, the size of the page before it, with the image as large as fits, centred
An image from another app (a web page, a screenshot tool, an area dragged from prev) As an image file: on the page where you let go A new page at the line, as an image file
A PDF file from the file manager prev asks whether to add it to the end of the document or open it in its own window Its pages are inserted at the line; with Ctrl over the page view, at the end
Pages dragged from another prev window, or a PDF dragged from a web page Inserted after the selected page Inserted at the line; with Ctrl over the page view, at the end
Text (from another app, or selected text dragged from prev) A text box with that text, sized to fit it, where you let go A text box in the middle of what is visible of the current page
Any other files Each opens in its own window

Whatever tool is chosen, dropped images and text become annotations the select tool can move, and Undo takes them back. An image annotation dragged from a page onto the thumbnails becomes a new page there too: it is copied, and stays on its page unless you hold Shift (or Command on macOS), which moves it.

Dropping into an image window

What you drop On the picture On the sidebar, or anywhere with Ctrl
Image files They join the window, after its images, in the thumbnail sidebar, which opens; the first of them is shown. Images the window has already are skipped. With the markup bar open, one image file goes on the markup instead They join the window, as on the picture
An image from another app It goes on the markup where you let go. If the image had no markup yet, the markup opens and it goes in the middle. Remember to export: markup lasts only while the window is open It is saved to your Downloads folder (the one your desktop's user folders name, or ~/Downloads), under its own name, numbered if a file has that name already, and joins the window
Text It goes on the markup, as an image from another app does on the picture
Other files, such as PDFs Each opens in its own window
Pages Nothing: prev says to drop them on a document

An image annotation dragged from the markup onto the sidebar is saved to Downloads as Image.png and joins the window; Shift (or Command on macOS) also takes it off the markup.

Dragging out of prev

What How to drag it What it carries
Selected text With the Select tool, press on the selected text and drag The text, for any app that takes text
An area With the rectangular selection tool, choose an area, then press inside it and drag A PNG image of the area at twice the screen's resolution
Pages Drag thumbnails out of the window (inside the window, dragging reorders them) The pages: another prev window inserts them; the file manager saves them as a PDF named after the document and pages, such as Report (pages 2–4).pdf
An image in an image window Drag it out of the thumbnail sidebar The file itself, which the file manager copies and other apps open

On Linux and macOS, a small picture of the pages, area or image follows the pointer while it is dragged; Windows shows its own drag cursor. Dragged images and text are copied. Pages are copied unless you hold Shift (or Command on macOS) when you let go, which moves them: they are removed from the document they came from. A page dragged out and dropped back on the same window moves there with Shift, or is copied there without it. An image dragged out of the sidebar and dropped back on its own window is left alone.

For pages going to the file manager, prev writes the PDF to a drag folder in its cache (~/.cache/prev, ~/Library/Caches/prev on macOS, or %LOCALAPPDATA%\prev\cache on Windows); it is removed when the next drag starts and when prev quits.

Browsers and other apps

Not yet

The assistant

The assistant is a chat beside your document: ask about the file and it reads what it needs, shows you where things are, and works in the file for you with the same tools as an AI agent. The robot head on the toolbar, before the markup button, opens it on the right. Each window has its own chat, kept while the panel is closed; New Chat starts over, and Stop ends an answer under way. When a chat grows longer than a local model can read at once, its earlier part is summarised so the chat can go on, and the panel says so.

The model gets only what it asks for through the tools, never the whole file up front. With a local model nothing leaves your computer; with a cloud model, what it reads goes to the provider, so use one you trust with those files.

Adding a model

Open Settings, the Assistant tab, and pick a provider under Add a model:

Add sends the model one short message, and adds it once it answers; if it does not, the reason shows under it, with a link to the page that fixes it where there is one, such as billing. A model the list leaves out can be added by its name. The Assistant tab lists the models added, with the one in use; the panel's menu under the field switches model at any time, even mid-chat, grouped by provider.

The Assistant tab of Settings, listing a cloud model and a local model, with Ollama found running and its models ready to add

Chatting

Type in the field and press Enter. The answer streams in as Markdown, with each tool the model uses as a line of its own, and a small picture for the tools that look at a page. Models that think before they answer show their reasoning faintly as it comes, folded under Thoughts once they answer. The assistant does what you ask it without asking again: the switches that make prev ask before an agent acts are for outside agents, except the one for printing, which asks before the assistant prints too. A change it makes is one step of Undo, as yours are; signing and applying redactions cannot be undone, so it does them only when asked. A model that cannot see pictures gets the page's text instead.

Working with AI agents

An AI agent, such as Claude Code or a local model in an MCP client, can work in prev for you: read a document, show you something in it, mark it up, fill a form, sign, redact, rearrange pages, edit an image, export and print. prev runs an MCP server, prev --mcp, which the agent starts and talks to over standard input and output. It passes the agent's requests to the prev you are using, starting prev if it is not running, so you can watch the agent work in your own windows. Nothing listens on the network, and prev bundles no model: what the agent reads goes to the model the agent uses, so use one you trust with those files.

Setting up an agent

There is nothing to set up in prev. Add it to the agent as an MCP server that runs prev --mcp. For Claude Code:

claude mcp add prev -- prev --mcp

Where prev is not on the path, give the whole path: /Applications/prev.app/Contents/MacOS/prev on macOS, %LOCALAPPDATA%\Programs\prev\prev.exe on Windows, and flatpak run run.prev.Prev for the Flatpak. For a local model, use an MCP client that works with it and add prev the same way; most take a file like this:

{ "mcpServers": { "prev": { "command": "prev", "args": ["--mcp"] } } }

The first time an agent connects, prev asks whether to let it control prev, in the window in front. Allow is remembered; Don't Allow lasts until prev quits. Settings lists the agents you allowed, with Forget to be asked again, and Allow outside control turns all of it off.

prev asking: Allow Claude Code to control prev?, with Don't allow and Allow, over the annual report

Asking before an agent acts

Settings has a switch for each kind of thing an agent can do: read a file, change the view or a window, mark up, edit, sign, apply redactions, export and print. With a switch on, prev shows what the agent asks to do in the window it acts on, with Allow and Don't Allow, and the agent waits for your answer. Signing and applying redactions ask at first, as Undo cannot take them back, and so does printing, as it spends paper; the others start off. The agent is told which tools ask, so it can tell you to look at prev. The switches are for outside agents; prev's own assistant acts on what you ask it without asking again, except before it prints.

prev asking: Let Claude Code sign this file?, adding that Undo cannot take this back, over a filled-in membership form
The Agents tab of Settings: Allow outside control on, Claude Code allowed, and the Ask before an agent switches, with signing, applying redactions and printing on

What agents can do

An agent pointing out the largest expense: the drip irrigation row of the budget's expenses table, outlined in the accent colour
An agent showing you the largest expense as it tells you about it.

Agents work as you do: each change saves by itself and is one step of Undo, so you can take back what an agent did.

Saving and versions

There is no Save command: edits to PDFs and images are written in place a moment after you stop, and when a window closes. Before the first write, prev keeps the original as a version in the version history folder (~/.local/share/prev/versions; %APPDATA%\prev\versions on Windows; ~/Library/Application Support/prev/versions on macOS), unless the settings say otherwise. For images, the inspector's Revert To list puts an earlier version back; Revert To for PDFs is still to come.

Settings

The Appearance tab of Settings: light or dark, the accent colour, and how windows look

Settings opens over the current window, from the gear button at the end of the toolbar or Ctrl+,. Close it with its close button, Escape or a click outside it. Changes apply to every window at once. Its five tabs are General, with the languages and the default app; Appearance, with light or dark, colours and how windows look; Assistant, with the models for the assistant; Agents, for AI agents; and Storage, with where prev keeps your files:

The General tab of Settings, with the languages and Default app: a green dot beside Make Default and the line 41 of 41 file types open with prev
The Default app row three times: a red dot with 0 of 41 file types, an amber dot with 3 of 41, and a green dot with 41 of 41
None, some and all of prev's file types opening with prev.

Keyboard shortcuts can be changed in the [keys] table of the settings file, prev.toml; the Settings dialog has no place for them. The README lists the actions and how to write a shortcut. Menus on macOS and the hints prev shows name the shortcuts in effect.

The floating toolbar

The toolbar and markup bar floating over the document

With "Hide the toolbar when the pointer leaves" on (or the top-panel button at the end of the toolbar), the toolbar floats over the document as a rounded bar, and the markup bar floats along the bottom. They slide in while the pointer is over the window and go away when it leaves, so the whole window shows the page. Sidebars and panels stay clear of them.

Where files go

Settings are kept in prev.toml, which lists every setting, including where prev keeps your files:

SystemSettingsSignatures, versions and bookmarks
Linux~/.config/prev.toml~/.local/share/prev
Windows%APPDATA%\prev\prev.toml%APPDATA%\prev
macOS~/Library/Application Support/prev/prev.toml~/Library/Application Support/prev

On Linux, for example:

signatures = "~/.local/share/prev/signatures"
versions = "~/.local/share/prev/versions"
bookmarks = "~/.local/share/prev/bookmarks.toml"

The Flatpak keeps its own under ~/.var/app/run.prev.Prev.

Change them in the Storage section: type a path (~ works) and press Enter or Apply, or pick a folder with Choose. prev checks that the folder exists and can be written, uses the new place at once and saves it to the file. Files already at the old place stay there; move them over to keep using them. The paths are filled in when the file is first made and then stay as they are.

Looks

prev follows the system's light or dark setting and reduced motion setting, and its accent colour. It looks the same on Windows and macOS, in each system's own window; on the Mac its menus are in the menu bar, and its shortcuts use ⌘ instead of Ctrl. In narrow windows, toolbar groups that don't fit move into a More menu, which closes as soon as you choose something from it (a button that opens its own menu, such as Pages, keeps it open under that menu). The search field grows into whatever room the toolbar has left.

On Linux desktops that draw no title bar above a window, such as Hyprland, niri and river, the toolbar ends with a button that closes the window, and a window with no file open has one in its corner.

prev on Windows 11 with the garden plot application filled in and signed
prev on macOS, below its menu bar, with a landscape photo marked up