Есть ли исчерпывающий список сочетаний клавиш mupdf?

Мне нравится скорость mupdf, но я раздражен отсутствием документации и ее (излишне) гиперманимальным интерфейсом без видимой строки меню или контекстного меню. Существует ли список сочетаний клавиш для этого приложения? Ссылка на руководство на официальном сайте не работает.

Я знаю только о следующих сочетаниях клавиш:

  • по ширине: Shift + w
  • по высоте : Shift + h

Пожалуйста, ответьте с помощью известных вам ярлыков.

27
задан 12 April 2015 в 21:36

5 ответов

Взятый из исходного кода, это исчерпывающий список всех ярлыков mupdf (с любой возможной полезной информацией).

←,→
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

Бонус / викторина:

шаги по dpi при увеличении жестко заданы.

Как и в Vim, ярлыки, такие как W (вверху), будут активированы как нажатием SHIFT + w, так и нажатием w при включенной функции CAPS LOCK. Аналогично, w (ниже) будет активирован нажатием w (с выключенным CL) и SHIFT + w (с включенным CL). Это потому, что нажатия клавиш внутренне обрабатываются как символы, что делает верхний W, созданный с SHIFT, неотличимым от ввода с CL.

mupdf не смотрит, изменяется ли файл. Кроме того, масштабирование, подгонка и перемещение без изменения страницы не будут перезагружать документ, в то время как все другие движения (и r) будут (или лучше - перезагружать одну страницу). Однако mupdf следит за SIGHUP, что означает, что он может быть вынужден перезагрузить текущую страницу с killall -s SIGHUP mupdf или подобным, что оказывается неоценимым в среде как Vim & Latex.

Наконец,

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

, по-видимому, соответственно активируют загадочную функцию save и доступны только в режиме загадочной отладки . Не знаю, для чего они (или, может быть, я просто дразню - вы выбираете).

0
ответ дан 12 April 2015 в 21:36

официальная документация перечисляет привязки клавиш. Нажатие F1 в программе просмотра также работает.

Привязки клавиш в версии 1.11, согласно руководству, таковы:

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.

Несколько команд могут принимать числовой аргумент, введенный перед клавишей, для изменения команды. Например, чтобы увеличить изображение до 150 т / д, введите 150z.

Чтобы скрыть серое поле, отображаемое с помощью i или F1 , используйте Esc . Это недокументировано, но интуитивно понятно.

0
ответ дан 12 April 2015 в 21:36

Скопировано из 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.
0
ответ дан 12 April 2015 в 21:36
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 h, j, k, l  Pan page in small increments.
 
b   Smart move one screenful backward.
[space] Smart move one screenful forward.
[comma] or [page up]    Go one page backward.
[period] or [page down] Go one page 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.
0
ответ дан 28 October 2020 в 16:44

Я опаздываю на вечеринку, но, похоже, было добавлено гораздо больше ярлыков — по крайней мере, в версии GLUT (mupdf-gl)

Благодаря @pp.ch.te, у меня было несколько строки для поиска в исходном коде. Я нашел следующий полузашифрованный список с grep case platform/gl/gl-main.c (полагаю, есть аналогичные списки и для других платформ)

        case KEY_F1: showhelp = !showhelp; break;
        case 'a': toggle_annotate(); break;
        case 'o': toggle_outline(); break;
        case 'L': showlinks = !showlinks; break;
        case 'F': showform = !showform; break;
        case 'i': showinfo = !showinfo; break;
        case 'r': reload(); break;
        case 'q': glutLeaveMainLoop(); break;
        case 'C': currenttint = !currenttint; break;
        case 'I': currentinvert = !currentinvert; break;
        case 'e': currentseparations = !currentseparations; break;
        case 'f': toggle_fullscreen(); break;
        case 'w': shrinkwrap(); break;
        case 'W': auto_zoom_w(); break;
        case 'H': auto_zoom_h(); break;
        case 'Z': auto_zoom(); break;
        case 'z': set_zoom(number > 0 ? number : DEFRES, canvas_w/2, canvas_h/2); break;
        case '+': set_zoom(zoom_in(currentzoom), ui.x, ui.y); break;
        case '-': set_zoom(zoom_out(currentzoom), ui.x, ui.y); break;
        case '[': currentrotate -= 90; break;
        case ']': currentrotate += 90; break;
        case 'k': case KEY_UP: scroll_y -= 10; break;
        case 'j': case KEY_DOWN: scroll_y += 10; break;
        case 'h': case KEY_LEFT: scroll_x -= 10; break;
        case 'l': case KEY_RIGHT: scroll_x += 10; break;
        case 'b': number = fz_maxi(number, 1); while (number--) smart_move_backward(); break;
        case ' ': number = fz_maxi(number, 1); while (number--) smart_move_forward(); break;
        case ',': case KEY_PAGE_UP: currentpage -= fz_maxi(number, 1); break;
        case '.': case KEY_PAGE_DOWN: currentpage += fz_maxi(number, 1); break;
        case '<': currentpage -= 10 * fz_maxi(number, 1); break;
        case '>': currentpage += 10 * fz_maxi(number, 1); break;
        case 'g': jump_to_page(number - 1); break;
        case 'G': jump_to_page(fz_count_pages(ctx, doc) - 1); break;
        case 'm':
        case 't':
        case 'T':
        case '/':
        case '?':
        case 'N':
        case 'n':
        case 'p': password = fz_optarg; break;
        case 'r': currentzoom = fz_atof(fz_optarg); break;
        case 'I': currentinvert = !currentinvert; break;
        case 'W': layout_w = fz_atof(fz_optarg); break;
        case 'H': layout_h = fz_atof(fz_optarg); break;
        case 'S': layout_em = fz_atof(fz_optarg); break;
        case 'U': layout_css = fz_optarg; break;
        case 'X': layout_use_doc_css = 0; break;
        case 'J': enable_js = !enable_js; break;
        case 'A': aa_level = fz_atoi(fz_optarg); break;
        case 'C': currenttint = 1; tint_white = strtol(fz_optarg, NULL, 16); break;
        case 'B': currenttint = 1; tint_black = strtol(fz_optarg, NULL, 16); break;

Я не проверял их все, но На самом деле я изменил пару ярлыков для вещей, которые я нашел более интуитивными, и изменил приращение для прокрутки и т. Д. К моему удивлению, я обнаружил, что мои изменения действительно работали после перекомпиляции! (Вероятно, не рекомендуется, так как это может нарушить установку mupdf)

0
ответ дан 6 November 2020 в 17:50

Другие вопросы по тегам:

Похожие вопросы: