You are not logged in.

#1 2013-04-16 12:04:07

runa
Member
Registered: 2012-02-19
Posts: 8

llpp

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

#2 2013-11-25 13:05:03

dobai.roland
Member
Registered: 2013-11-25
Posts: 1

Re: llpp

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

Board footer

Powered by FluxBB