Commit Graph

92 Commits

Author SHA1 Message Date
Sebastian Ramacher
a00b2da39c update zathurarc.5.rst 2011-07-08 17:21:11 +02:00
Sebastian Ramacher
b92d4a48a1 Fix description of delbmark.
Thanks to Pavel Borzenkov.
2011-07-08 15:52:03 +02:00
Pavel Borzenkov
7a1a4d6ddd Don't allow to set bookmarks with reserved names
Currently, 'page', 'offset' and 'scale' are reserved bookmark names.
We should not allow to set arbitary bookmarks with such names.

Also, this patch fixes memory leaks in the cmd_bookmark() function.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
2011-07-07 13:21:04 +02:00
Pavel Borzenkov
33cda59c05 Save zoom level in the bookmarks file
This patch introduces new configuration option: save_zoom_level.
If this option is set (default) zathura will store zoom level
in the bookmarks file on quit and restore it on open.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
2011-07-05 13:11:58 +02:00
Sebastian Ramacher
4400d8abd9 make :write save and make it work with relative paths 2011-04-03 16:29:39 +02:00
Sebastian Ramacher
41812c5939 Add option to disable auto-generated bookmarks (closes #73)
Applying patch from Minoru with some modifications since we already have
read_bookmarks_file.
2010-12-11 10:12:50 +01:00
Sebastian Ramacher
25256827dc typo 2010-12-01 16:47:58 +01:00
Sebastian Ramacher
815f2b5243 Make 'set scroll_wrap' work as expected.
Thank's to wart_.
2010-11-09 16:03:53 +01:00
Sebastian Ramacher
3b8efee3ed Add more familiar zoom keybindings (closes #45)
One can use '+' to zoom in, '-' to zoom out and '=' to set the zoom level back
to 100%.
2010-10-31 10:30:26 +01:00
Sebastian Ramacher
de0d0fb4e0 Implement wrap-around scrolling (closes #44)
Applied a modified version of raylu's patch. One can enable/disable wrap-around
scrolling with `set scroll_wrap 1/0". It's disabled per default.
2010-10-31 10:11:25 +01:00
Moritz Lipp
da344ac8b9 Color window and viewport
Thanks to Strom
2010-10-25 14:10:10 +02:00
Moritz Lipp
d6574f57d1 Open command with appended current filepath
Closes #30

Thanks to thorsten
2010-10-18 20:14:38 +02:00
Sebastian Ramacher
f7d6e0e6a9 follow XDG specification (closes #35)
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.
2010-09-27 15:22:23 +02:00
Moritz Lipp
e8323fc50f Update configuration 2010-08-19 19:39:50 +02:00
Moritz Lipp
5e352124fb Allow configurable modes 2010-07-24 00:51:47 +02:00
Moritz Lipp
56284b9fd1 Fixed some quoating issues
Thanks to Sebastinas
2010-07-23 14:06:05 +02:00
Moritz Lipp
68fc126c8a Specify configuration directory
With this commit it is possible to pass the path to an configuration
directory. Thanks to Sebastinas

Other changes:
  * Updated Makefile
  * Update Manpage
2010-07-22 23:40:55 +02:00
Moritz Lipp
622a635075 Read global configuration file
Thanks to Sebastinas
2010-07-22 23:27:17 +02:00
Moritz Lipp
eae4e48877 Delete line to start
Thanks to n0nsense
2010-07-08 12:35:57 +02:00
Moritz Lipp
162ae295b7 Updated print command 2010-07-07 18:44:37 +02:00
Moritz Lipp
6d321e2ec5 Optional parameters for print command 2010-07-05 12:35:38 +02:00
Moritz Lipp
2f027ed1ad Define number of completion items 2010-07-04 10:25:11 +02:00
Moritz Lipp
d4dd021eab Smooth scrolling
With this commit it is possible to activate a smoother scrolling
by setting smooth_scrolling in the zathurarc file to e.g. 2.0.
2010-06-27 09:38:48 +02:00
Moritz Lipp
74df22586b Updated manpage 2010-06-22 08:55:45 +02:00
Moritz Lipp
ad5dcd0e70 Updated statusbar string manipulation 2010-06-22 01:57:08 +02:00
Moritz Lipp
1a6b624bf2 Version 0.0.7 2010-06-21 22:09:47 +02:00
Moritz Lipp
2f1f105f73 Set show_inputbar/statusbar 2010-06-21 21:00:59 +02:00
Moritz Lipp
d631c27f8c Clean up shortcuts 2010-06-19 10:33:36 +02:00
Moritz Lipp
0c0050b111 Bindings for special keys
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.
2010-06-18 12:58:20 +02:00
Moritz Lipp
5677083579 Set adjust_open and map zoom command 2010-06-18 11:03:11 +02:00
Moritz Lipp
8df70f0e83 Arguments and mode for mappings
It is now possible to define an argument and an additional
mode for the mapping.
2010-06-17 00:37:43 +02:00
Moritz Lipp
31d10fa0f0 Simple map function without any parsing 2010-06-16 23:13:25 +02:00
Moritz Lipp
ece73d6c1a Introduce a shortcut list
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.
2010-06-16 22:46:02 +02:00
Moritz Lipp
de7131a811 Added blank map function 2010-06-16 21:50:28 +02:00
Moritz Lipp
5ac14daf6b More options available in zathurarc
This commit makes much more settings available in the
zathurarc file.
2010-06-15 12:50:43 +02:00
Moritz Lipp
5b95da172f Introduced zathurarc 2010-06-14 21:52:19 +02:00
Moritz Lipp
0a20bb6218 Define colors and fonts with the set function
With this changes it is possible to set the colors
with the :set function.
2010-06-14 21:06:26 +02:00
Moritz Lipp
a59443af05 Introduced page-wise scrolling
It is now possible to scroll one page or an half page up or down.
2010-06-14 17:16:10 +02:00
Moritz Lipp
532101ce63 URI fix
This fix makes it possible to open URIs containing
multiple arguments.

Thanks to Dennis Felsing
2010-06-12 14:19:20 +02:00
Moritz Lipp
6f6478b0ad Added reload shortcut 2010-06-03 18:12:45 +02:00
Moritz Lipp
036a3c83e1 Fixed page-list in print command 2010-06-02 10:59:44 +02:00
Moritz Lipp
fab51efea3 Enter password dialog
If the user tries to open an encrypted file, zathura aks for the password
in form of a dialog.
2010-05-24 21:26:40 +02:00
Moritz Lipp
9936e31095 Added fullscreen mode for special shortcuts 2010-05-24 11:41:08 +02:00
Moritz Lipp
ecfe451807 Fullscreen
It is now possible to enable a fullscreen mode.
2010-05-24 09:38:54 +02:00
Moritz Lipp
b33e33fd36 Custom selection style 2010-05-18 00:59:50 +02:00
Moritz Lipp
6e0616d35b Draw marked area
This commit draws an rectangle in the marked area.
2010-05-18 00:58:25 +02:00
Moritz Lipp
742c9770a2 Implemented scrolling 2010-05-18 00:57:37 +02:00
Moritz Lipp
63c0312b57 Optional page offset mode
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.
2010-05-05 20:05:06 +02:00
Moritz Lipp
52b4eb464f Added page labels
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.
2010-05-05 12:36:14 +02:00
Moritz Lipp
e4f80b864b Keyboard navigation for the index
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.
2010-04-27 16:07:49 +02:00