Is there a comprehensive list of mupdf keyboard shortcuts?

Copy-pasted from man mupdf:

A description of each of the supported options is included below.

-p password
        Uses  the  given  password  to  open an encrypted PDF file.  The
        password is tried both as user and owner password.

-r resolution
        Changes the initial zoom level, specified as the  resolution  in
        dpi.  The default value is 72.

MOUSE AND KEY BINDINGS

In  addition to the key bindings described below, the mouse can also be
used. Clicking the left mouse button follows links within the PDF while
dragging  with  the  left mouse button pans the page. Dragging with the
right mouse button selects an area and copies the enclosed text to  the
clipboard  buffer.  Using the scroll-wheel while pressing Control zooms
in/out, if Shift is pressed on the other hand then the page is panned.

L, R   Rotate page left (clockwise) or right (counter-clockwise).

h, j, k, l
        Scroll page left, down, up, or right.

+, -   Zoom in or out.

w      Shrinkwrap window to fit the page.

r      Reload file.

. pgdn right space
        Go to the next page

, pgup left b
        Go to the previous page

<, >   Skip back/forth 10 pages at a time.

m      Mark page for snap back.

t      Pop back to the latest mark.

[0-9]m Save the current page number in the numbered register.

[0-9]t Go to the page saved in the numbered register.

123g   Go to page 123.

/      Search for text.

n, N   Find the next/previous search result.

c      Toggle between color and grayscale rendering.

Taken from the source code, this is an exaustive list of all mupdf shortcuts (with any possibile useful info).

←,→
h,j,k,l     navigate
            (even if the page is horizontal only j and k will change page;
            j and k will align the bottom (or the top) of the page with
            the bottom (or the top) of the window before changing page)

→,SPACE     next page
←,b
BACKSPACE   previous page
            (all these won't change the placement of the page
            in the window)

. ,         next/previous page
            (these will align the top (or bottom) of the page with
            the top (or bottom) of the window)

>,<         skip forth/back 10 pages
            (>< will align the top of the page with the top of the window)

[n]g
[n]ENTER    go to page n
            (will go to the first page with no number)

G           go to last page

[0-9]m,t    set and go to mark

+,=         zoom in
-           zoom out
            (note that zooming is restricted to certain 'levels' only -
            18, 24, 36, 54, 72, 96, 120, 144, 180, 216 and 288 dpi)

L,R         rotate 90° (counter)clockwise

W,H         fit to width, heigth
Z           autofit (fit to height if the page is vertical,
                     to width if the page is horizontal)

w           resize window to fit the page

f           fullscreen

/,?         search forward/backward
n,N         next/previous search term
            (n and N are swapped if the search is backward)

I           invert colors
C           toggle gray/redscale
c           choose grayscale or redscale

p           presentation mode
            (there will be a fade when changing pages)

r           reload the page

q           quit

Some infos:

dpi steps in zoom are hard-coded.

As in Vim, shortcuts like W (upper) will be activated both by pressing SHIFT+w and pressing w with CAPS LOCK on. Similarly, w (lower) will be activated both by pressing w (with CL off) and SHIFT+w (with CL on). This because keystrokes are internally treated as characters, which makes an upper W produced with SHIFT indistinguishable by one entered with CL.

mupdf doesn't watch if a file changes. Also zooming, fitting and moving without changing page won't reload the document, while all other movements (and r) will (or better - will reload the single page). However mupdf watches for SIGHUP, which means that it can be forced to reload the current page with killall -s SIGHUP mupdf or similar, which turns out to be very useful in an environment as Vim&Latex.

Finally,

S           save
a,s         rotate 15° (counter)clockwise

seem respectevely to activate a misterious save function and to be available only in a misterious debug mode. I don't know what they are for.


The official documentation lists the key bindings for MuPDF OpenGL Viewer (a.k.a. mupdf-gl; but in some systems, it is executed via mupdf too), which supplanted the older x11- and win32-based viewers. Pressing F1 in the viewer works too.

Key bindings in version 1.11, according to the manual, are:

F1          Display help.
i           Display document metadata.
o           Toggle display of outline.
L           Toggle display of links.
r           Reload document.
q           Quit viewer.

f           Toggle fullscreen.
w           Shrinkwrap window to fit page.
W           Fit page width to window.
H           Fit page height to window.
Z           Fit page size to window.
[number] z  Set zoom resolution in DPI.
+           Zoom in.
-           Zoom out.
[           Rotate counter-clockwise.
]           Rotate clockwise.
[arrows]
  or        Pan page in small increments.
h, j, k, l

b           Smart move one screenful backward.
[space]     Smart move one screenful forward.
[comma]
  or        Go one page backward.
[page up]
[period]
  or        Go one page forward.
[page down]
<           Go 10 pages backward.
>           Go 10 pages forward.
[number] g  Go to page number.
G           Go to last page.

m           Save current page to navigation history.
t           Go back in navigation history.
T           Go forward in navigation history.
[number] m  Save current page in numbered bookmark.
[number] t  Go to numbered bookmark.

/           Start searching forward.
?           Start searching backward.
n           Continue searching forward.
N           Continue searching backward.

Several commands can take a number argument entered before the key, to modify the command. For example, to zoom to 150 dpi, type 150z.

To hide the gray box displayed by i or F1, use Esc. This is undocumented, but intuitive.