You are not logged in.
Pages: 1
Hi there, I used to be pretty happy with zathura but the mupdf support
is not as good as llpp. On the other hand I really hate some of the default llpp
shortcuts. Especially the <Esc>. As a vim user I tend to press a lot
<Esc>. I can not find how to change the source code to have my
shortcuts. Another thing I would love is some bar to show the
pagenumber and similar stuff. Anyone has already done it?
Thanks in advance!
Offline
I had the same problem with the ESC key and managed to replace it. I post the solution because I found no answer on the internet. Maybe it will be useful for others too.
diff --git KEYS KEYS
index efa8294..8465deb 100644
--- KEYS
+++ KEYS
@@ -12,7 +12,7 @@ primary mouse button[1] - click on link or select text[2]
zoom to block - when in block zoom mode
otherwise - pan if there's no text/link under the cursor
other mouse button[1] - select rectangle to zoom to
-escape/q - quit
+d - quit
Q - quit without saving the configuration
backspace - go back after jumping (clicking link and suchlike) [4]
alt-left/right arrow - go backward/forward in history
diff --git main.ml main.ml
index 6c6c879..dcff2ea 100644
--- main.ml
+++ main.ml
@@ -5442,7 +5442,7 @@ let viewkeyboard key mask =
)
else showtext '!' "Keyboard link navigation does not work under rotation"
- | 0xff1b | 113 -> (* escape / q *)
+ | 100 -> (* d *)
begin match state.mstate with
| Mzoomrect _ ->
state.mstate <- Mnone;This diff replaces the ESC/q mapping with d. 100 is the ASCI code of d. If you want to keep just the q without the ESC, then use 113.
Offline
Pages: 1