]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - xpdfrc
herbstluftwm: Add basic configuration file.
[config/dotfiles.git] / xpdfrc
diff --git a/xpdfrc b/xpdfrc
index 1e069e6ab4fc89c3533bc04875f6efb06be19c06..e5582091ef81f604963fb5720bc6ee3b716381be 100644 (file)
--- a/xpdfrc
+++ b/xpdfrc
@@ -25,10 +25,24 @@ include /etc/xpdf/xpdfrc
 bind ctrl-o any toggleOutline
 
 # Vi like bindings for scrolling.
-bind k any pageUp
+#
+# j/k are mapped to page* (and not scroll*) or pressing j/k won't scroll
+# up/down when the whole page is viewed.
 bind j any pageDown
+bind k any pageUp
 bind h any scrollLeft(16)
 bind l any scrollRight(16)
+#
+bind ctrl-b any pageUp
+bind ctrl-f any pageDown
+
+# Vi like bindings for searching.
+bind / any find
+bind n any findNext
+
+# Zoom to full page on startup, change to "normal" zoom mode by pressing 0.
+initialZoom page
 
-# Use Elinks to open URLs.
-urlCommand "elinks -remote '%s'"
+# Use Elinks to open URLs. No quotes around %s, xpdf must handle the quoting
+# or it causes security vulnerabilities with manipulated URLs.
+urlCommand "elinks -remote %s"