X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=xpdfrc;h=e5582091ef81f604963fb5720bc6ee3b716381be;hb=e0a76c26f9164e070166fcc62e1c287cc1033eef;hp=337bf1cd7c9412e65ef752c7496aa6f88e62dc25;hpb=662c513143a73d47f7da8d3ef59a85f63f4dab57;p=config%2Fdotfiles.git diff --git a/xpdfrc b/xpdfrc index 337bf1c..e558209 100644 --- a/xpdfrc +++ b/xpdfrc @@ -1,5 +1,20 @@ # xpdf configuration file. +# Copyright (C) 2011-2012 Simon Ruderich +# +# This file is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this file. If not, see . + # Include the system wide configuration file as xpdf doesn't load it # automatically if ~/.xpdfrc is present. @@ -10,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"