This is highly experimental but should work in principal. If there is a better
way to dump the contents of stdin to a temporary file, send me a patch, please.
Use XDG_* environment variables to locate the config directory and data
directory. Uses ~/.config/zathura and ~/.local/share/zathura as fallback (the
directories specified in config.h's CONFIG_DIR and DATA_DIR respectively) if the
environment variables are not set.
Uncomment the ZATHURA_NO_XDG define in config.h to always use CONFIG_DIR and
DATA_DIR.
One can specify --config-dir and --data-dir to overwrite the precomputed config
and data location.
With this commit it is possible to pass the path to an configuration
directory. Thanks to Sebastinas
Other changes:
* Updated Makefile
* Update Manpage
This patch appends slashes to directories in cc_open. In addition
lines in zathurarc that do not end with a new line won't be
ignored anymore.
Thanks to Trundle
This commit makes it possible to define and use special keys
like <Space> on their own or in combination with a modifier:
<C-<Space>>.
In addition the evaluation of the keypress has been changed, so
that the order of the bindings do not matter any longer.
This patch checks the length of a line in the zathurarc file: If
the line is empty it wont be processed to prevent a segmentation
fault.
Thanks to escherdragon.
This commit introduces a shortcut list that is used
now to check given keybindgins: On the contrary to
the static shortcut array it can be easily modified
and extended.
In addition some malloc-checks have been introduced
and a named shortcut list that will be used to evaluate
the cmd_map parameters.
This hack checks if the PDF file is damaged when
zathura tries to automatically reload it. Now even
if the document is damaged, zathura does not close
the current document session.
This commit calculates the rectangle that will be drawn
correctly. Now the mapped rectangle is calculated wrong,
but it gets the text of the document and copies it to
the clipboard.
This patch checks while opening the pdf document
if it is reasonable to activate the goto label mode:
Sometimes all labels match their page number and then
the label goto mode will slow the navigation down.
This commit is build on the idea of Renato Florentino to be able to
correct the page offset that some documents have. His patch, where
most of the code has been adapted to this commit ( thanks! ), made
it able to correct the current page and automatically calculate the
correct page offset. Now this patch will introduce a third mode to
the bcmd_goto command: You are now able to set the page directly,
calculate it over the offset or search the labels for it.
The page labels are now used in the buffered command bcmd_goto, so
if this option is enabled and you try to reach page number 20, zathura
first seraches for a label named like that and moves to that page instead
of moving to page 20 in the document.
With this commit it is possible to show and use the labels of a page,
which makes it possible to use a page offset. E.g.: Sometimes the page
numbers written on the page in the document differ from the order in the
file, which can be annoying by e.g. trying to go to the page number >20<
that is instead page number >24< in the document.
This patch provides the functionality to browse through the index
via the keyboard hence the mouse is not needed anymore. The original
author of this patch is int3 <jezreel@gmail.com>, in addition there
has been introduced a fix solving problems with named destinations.
This commit fixes a typo concerning the scrolling command and adds
additional bindings for the spacebar, the arrow keys and two keys
you find on thinkpad keyboards.
This commit calculates the rectangle that will be drawn
correctly. Now the mapped rectangle is calculated wrong,
but it gets the text of the document and copies it to
the clipboard.