Moritz Lipp
9202774990
Fixed some memory leaks
2012-02-28 08:32:34 +01:00
Moritz Lipp
bc7878da0e
Update statusbar in page_set
2012-02-21 22:12:44 +01:00
Moritz Lipp
a4b4c91dae
Calculate current page number only if scrolling
2012-02-21 20:39:42 +01:00
Moritz Lipp
8219d48eba
Reload correct page when re-opening known file
2012-02-20 20:13:53 +01:00
Moritz Lipp
b6f1868e7f
Fix automatic file reloading
2012-02-20 20:07:24 +01:00
Moritz Lipp
b8470a5317
Set current page number in page_set
2012-02-20 12:40:25 +01:00
Moritz Lipp
394fbd934d
Update style
2012-02-17 00:43:01 +01:00
Sebastian Ramacher
0251fb75dd
use gdk_threads_add_idle instead of g_idle_add
2012-02-16 16:18:12 +01:00
Sebastian Ramacher
e7f0e30d99
only call sc_adjust_window if the allocation of the window really changed
2012-02-14 15:53:04 +01:00
Sebastian Ramacher
2f38126a7a
make the recolor colors changeable too
2012-02-14 14:53:45 +01:00
Sebastian Ramacher
9d04a7bfcf
make highlight colors configurable during runtime
2012-02-14 14:46:19 +01:00
Sebastian Ramacher
69b5cb0be5
more GTK+3 support
2012-02-14 13:53:26 +01:00
Sebastian Ramacher
16336cf065
Merge branch 'develop' of pwmt.org:zathura into develop
2012-02-13 12:44:44 +01:00
Sebastian Ramacher
a4fab8c368
some more work to be compatible with GTK+3
2012-02-13 12:43:22 +01:00
Moritz Lipp
b59e5686ec
Update style
2012-02-12 16:35:33 +01:00
Moritz Lipp
851ef7cd7b
Adjust on resize / Adjust on open
2012-02-09 01:46:51 +01:00
Sebastian Ramacher
bd8097d5b2
don't add +1 to current page number
2012-02-08 23:38:22 +01:00
Sebastian Ramacher
e513cb5579
store rotation in history
2012-02-08 22:23:45 +01:00
Sebastian Ramacher
c6403ec097
wrap gtk_adjustment_set_value
2012-02-08 21:34:53 +01:00
Moritz Lipp
2669ed43a8
Renamed buffer_changed function
2012-02-08 15:19:51 +01:00
Moritz Lipp
33e37b12e4
Resolve possible null pointer dereference
2012-02-07 20:05:24 +01:00
Moritz Lipp
21a65cbe34
Rename PageViewWidget to PageWidget
2012-02-07 18:30:46 +01:00
Sebastian Ramacher
460b517998
drop unnecessary calls
2012-02-07 17:32:03 +01:00
Sebastian Ramacher
623678ee9c
force cb_vadjusment_value_changed to be called at least once
2012-02-07 16:38:21 +01:00
Sebastian Ramacher
57291989c5
calculate visible pages and update current page number
2012-02-07 14:56:58 +01:00
Sebastian Ramacher
a1cdb48921
Create a page view widget ( Closes : #90 ).
...
Add a widget derived from GtkDrawingArea that handles the drawing. It
automaticaly requests rerendering of the page if necessary (i.e on a scroll and
rotate).
This should solve all the rendering issues.
2012-02-05 11:24:34 +01:00
Sebastian Ramacher
083a40f447
adopt to changes from girara
2012-02-03 22:15:29 +01:00
Sebastian Ramacher
269b784c3a
fork if --fork is given ( Closes : #52 )
...
Thanks to egl209 for the patch.
2012-02-01 17:40:26 +01:00
Moritz Lipp
8ddbb158e3
Implement test suite with check
2012-01-28 19:54:44 +01:00
Moritz Lipp
3311038681
Begin to draw sc_follow results
2012-01-19 00:49:08 +01:00
Sebastian Ramacher
c75eaf4c43
center the pages ( Closes : #85 , #87 )
2012-01-13 17:39:46 +01:00
Sebastian Ramacher
b133a75717
pass sessionname
2011-12-13 19:59:59 +01:00
Sebastian Ramacher
f47775abf2
coding style
2011-12-11 19:30:36 +01:00
Sebastian Ramacher
fa6bc5a2e8
set default values before loading the first config file
2011-12-11 00:19:46 +01:00
Sebastian Ramacher
6c0a63943f
fix the zooming issue
2011-12-10 10:19:14 +01:00
Sebastian Ramacher
ed724cc03d
fix a 'format not a string literal and no format arguments' warning
2011-11-12 18:21:45 +01:00
Sebastian Ramacher
44360dea93
load config files from XDG_CONFIG_DIRS
2011-10-30 11:46:30 +01:00
Sebastian Ramacher
19c1b0195b
use girara_split_path_array and girara_list_merge
2011-10-29 22:58:02 +02:00
Moritz Lipp
ab60625531
Update sc_toggle_fullscreen
2011-10-26 20:46:59 +02:00
Pavel Borzenkov
0476dbe930
Fix build warnings
...
The patch fixes the following build warnings:
zathura.c: In function ‘prepare_document_open_from_stdin’:
zathura.c:306: warning: implicit declaration of function ‘close’
zathura.c:314: warning: implicit declaration of function ‘read’
zathura.c:316: warning: implicit declaration of function ‘write’
Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
2011-10-24 08:09:24 +02:00
Sebastian Ramacher
d18f255bc0
use girara_list_find
2011-10-23 20:18:44 +02:00
Sebastian Ramacher
49b682e0a8
duplicate the string for stdin support
2011-10-23 17:34:10 +02:00
Sebastian Ramacher
911d84c908
update includes due to girara restructuring
2011-10-23 17:01:15 +02:00
Sebastian Ramacher
cd842a8f48
Don't break backwards compatibility of the settings names
2011-10-21 15:37:59 +02:00
Sebastian Ramacher
7a5dd056fd
g_free return values of girara_setting_get
2011-10-21 15:32:50 +02:00
Sebastian Ramacher
98a1d2bc95
Reimplment 'load from stdin'
2011-10-21 15:00:22 +02:00
Sebastian Ramacher
27f275dd66
use g_malloc0 for zathura_document_info_t
2011-10-21 14:11:37 +02:00
Pavel Borzenkov
8608823613
Get file info earlier
...
We need to know the document's 'scale' value earlier (before cairo
surfaces are created). Otherwise, cairo surfaces will be re-created and
wrong page will be rendered (since zoom doesn't preserve page number).
Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
2011-10-20 18:28:12 +02:00
Pavel Borzenkov
88be07272f
There is no need to check return value of g_malloc()
...
It never returns NULL. If this function fails, the application is
terminated.
Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
2011-10-20 18:27:56 +02:00
Sebastian Ramacher
ca885e5a27
fix 'zathura may be used uninittialized'
2011-10-16 23:10:20 +02:00
Sebastian Ramacher
de52bae4da
close the document before destroying the widgets
2011-10-16 21:11:25 +02:00
Sebastian Ramacher
712e4bd408
use the correct sorting function
2011-10-15 18:42:30 +02:00
Sebastian Ramacher
14535b8f41
use a sorted list for bookmarks
2011-10-15 18:26:04 +02:00
Moritz Lipp
8061236e4e
Added structure for plain database
2011-10-10 23:46:50 +02:00
Sebastian Ramacher
9498b54fbc
introduce PLUGINDIR in config.mk which is used to determine the default look up path for plugins
2011-10-08 23:42:41 +02:00
Sebastian Ramacher
b843331afc
+1/-1 when storing/loading pages
2011-10-06 18:33:23 +02:00
Sebastian Ramacher
d047a36f6c
save file info on close
2011-10-06 17:57:26 +02:00
Sebastian Ramacher
88c4dd6bbe
load file info on start and jump to last seen page
2011-10-06 17:48:17 +02:00
Sebastian Ramacher
02e0c8b2d3
Fix a typo
2011-10-03 17:28:14 +02:00
Sebastian Ramacher
577d485747
create config/data directories if they don't exist
2011-10-03 17:19:55 +02:00
Moritz Lipp
8bf7587baf
Show document information
2011-10-01 23:29:40 +02:00
Moritz Lipp
9ec22cc1f6
Fix memory leak in zathura_free
2011-09-30 12:33:50 +02:00
Sebastian Ramacher
72ebb3bc13
fix page_set call in cb_index_row_activated
2011-09-29 18:39:40 +02:00
Sebastian Ramacher
b719e8701c
get rid of warnings
2011-09-29 18:08:37 +02:00
Moritz Lipp
96e8348caa
Prevent segfault in statusbar_page_number_update
2011-09-29 17:32:35 +02:00
Sebastian Ramacher
b34d21afaf
implement content type support
2011-09-29 15:23:13 +02:00
Moritz Lipp
e47ff9ad47
Resolve GLib-Gobject-CRITICAL warnings
2011-09-21 09:46:54 +02:00
Moritz Lipp
a6268788c0
Resolve warnings caused by -Wextra
2011-09-21 00:46:03 +02:00
Moritz Lipp
e20f425128
Some style updates
2011-09-21 00:25:41 +02:00
Sebastian Ramacher
cf3fd3510b
load bookmarks in document_open
2011-09-03 14:21:36 +02:00
Sebastian Ramacher
6f567a6264
some initial work on the sqlite database backend
2011-09-02 20:46:16 +02:00
Sebastian Ramacher
a6596fb908
initial bookmarks implementation
2011-09-01 15:43:34 +02:00
Sebastian Ramacher
87aa9b9a46
implement :write and :write!
2011-09-01 11:51:49 +02:00
Sebastian Ramacher
c445b0e679
implement :open
2011-08-31 00:08:33 +02:00
Pavel Borzenkov
caccb94c69
Fix ':close' command
...
Currently, zathura crashes while performing ':close' command with the
following error:
GThread-ERROR **: file gthread-posix.c: line 226
(g_cond_free_posix_impl): error 'Device or resource busy' during
'pthread_cond_destroy ((pthread_cond_t *) cond)'
The error is because 'render' thread holds condition variable while
waiting for new pages to render. This patch modifies zathura's code to
correctly kill render thread and free allocated resources when the
document is being closed.
NOTE: should be applied on top of "Allow changing of "pages-per-row"
variable at runtime" commit to avoid conflicts in the
'page_view_set_mode()' function.
Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
2011-08-25 00:49:26 +02:00
Pavel Borzenkov
32d90379bc
Allow changing of "pages-per-row" variable at runtime
2011-07-21 14:47:24 +02:00
Moritz Lipp
2a90a68ce8
Saner solution for the possible seg fault
2011-06-23 22:43:08 +02:00
Moritz Lipp
9d5cbcabb5
Fix possible segmentation fault
2011-06-23 22:40:48 +02:00
Moritz Lipp
7a0f870ff1
Fixed a possible memory leak
2011-05-09 10:53:09 +02:00
Moritz Lipp
00589a7295
Implemented recoloring
2011-04-30 13:27:27 +02:00
Moritz Lipp
ebd6605adf
Began to implement the printing dialog
2011-04-29 00:28:19 +02:00
Moritz Lipp
40ae60ea42
Updated page_set function
2011-04-27 20:32:57 +02:00
Moritz Lipp
4763624dab
Display current page number in statusbar
2011-04-27 19:57:49 +02:00
Moritz Lipp
68bda8550f
Initialize girara after parsing the configuration
2011-04-25 17:41:45 +02:00
Moritz Lipp
9f5430e449
Handle 0 pages-per-row
2011-04-25 16:54:21 +02:00
Sebastian Ramacher
48f04fc587
fix a typo
2011-04-20 16:58:08 +02:00
Moritz Lipp
5e4d584382
Merge branch 'render' into girara
...
Conflicts:
Makefile
config.c
config.h
document.c
ft/djvu/Makefile
ft/pdf-mupdf/Makefile
ft/pdf-poppler/Makefile
render.c
zathura.c
2011-04-19 21:54:24 +02:00
Moritz Lipp
5c5df5bf82
Fixed rendering
2011-04-19 21:42:18 +02:00
Sebastian Ramacher
09328e8e89
use GtkTable for page layout
2011-04-19 20:41:16 +02:00
Moritz Lipp
dc7c3d86eb
Calculate page offset
2011-04-19 19:24:03 +02:00
Moritz Lipp
5151b84a6f
Update render function
2011-04-19 16:03:42 +02:00
Sebastian Ramacher
298c9d2c7a
readd tabbed support
2011-04-19 14:46:08 +02:00
Sebastian Ramacher
b2fc17207e
Make plugin path configurable
...
* We don't fail if we can't load a plugin. There can be anything.
* Reintroduce the command line parser from glib.
* Use fstatat as it is more reliable than d_type from dirent.
2011-04-19 00:36:56 +02:00
Moritz Lipp
8bcb79ea94
Update
2011-04-18 21:22:35 +02:00
Moritz Lipp
536862900e
Updated document.c/zathura.c
2011-04-18 18:23:34 +02:00
Sebastian Ramacher
0d5a06ce29
free plugins
2011-04-18 18:21:33 +02:00
Sebastian Ramacher
f57fe5dfde
update document.c/.h
2011-04-18 18:19:41 +02:00
Moritz Lipp
daa523aaf5
Updated callbacks.c
2011-04-18 17:37:03 +02:00
Moritz Lipp
8960b6e83d
Updated zathura.h/zathura.c
2011-04-18 17:27:49 +02:00
Moritz Lipp
cfb2580b7b
Return value for create_blank_pages
2011-04-18 17:03:08 +02:00
Moritz Lipp
15d51567aa
Use girara debug functions
2011-04-02 23:40:57 +02:00
Moritz Lipp
3335e71ed8
Load configuration files
2011-04-01 09:55:37 +02:00
Moritz Lipp
801fe03009
Changed the strucure a bit
2011-03-20 02:53:24 +01:00
Moritz Lipp
e5d0b6bac0
Remove wrong threads_enter/leave
2011-03-20 01:43:02 +01:00
Moritz Lipp
dd97387715
Began to implement dual/multiple view
2011-03-18 18:40:20 +01:00
Moritz Lipp
52377b994d
Plugin register mechanism
2011-03-05 21:00:41 +01:00
Moritz Lipp
7629a30a27
Register document plugin and free registered plugins
2011-03-05 19:46:05 +01:00
Moritz Lipp
31027cbaad
Began to implement the index view
2011-02-10 11:33:28 +08:00
Moritz Lipp
5e7a774101
Updated coding standard
2011-02-09 19:44:48 +08:00
Moritz Lipp
4c19c798f7
Add function documentation
2011-02-08 14:51:53 +08:00
Moritz Lipp
55eaca8ec7
Render thread
2011-01-24 19:43:39 +08:00
Moritz Lipp
02f646751d
Moved render function
2011-01-07 09:07:02 +01:00
Moritz Lipp
f2b24f75b5
Show page border
2011-01-06 09:40:56 +01:00
Moritz Lipp
88fd3e555a
Render first page immediatly
2010-12-29 12:26:47 +01:00
Moritz Lipp
0398692705
Detect which page should be rendered
2010-12-29 11:46:13 +01:00
Moritz Lipp
3f961f6c18
Continuous basics
2010-12-28 09:47:09 +01:00
Moritz Lipp
eebdc8dece
Get all pages
2010-12-28 00:47:41 +01:00
Moritz Lipp
19637bcd54
djvu support rotation
2010-12-27 09:44:28 +01:00
Moritz Lipp
14d744befe
[testing] Use GdkPixbuf instead of cairo
2010-12-27 09:07:17 +01:00
Moritz Lipp
726766549e
Fix segmentation fault if no file has been opened
2010-12-26 11:10:10 +01:00
Moritz Lipp
ca35db2dc9
Added drawing area
2010-12-26 01:52:17 +01:00
Moritz Lipp
f8aa8773f3
Began to add djvu support
2010-12-23 19:41:07 +01:00
Moritz Lipp
3d027dd773
Set page
2010-12-12 22:04:42 +01:00
Moritz Lipp
ff2b588ea5
Statusbar entries
2010-11-18 21:22:43 +01:00
Moritz Lipp
43727a597b
Get and free pdf page
2010-11-18 14:51:13 +01:00
Moritz Lipp
4857d62fde
Init document, some changes
2010-11-18 02:41:46 +01:00
Moritz Lipp
6d5ac53aa3
Document structure
2010-11-17 22:51:15 +01:00
Moritz Lipp
ade141aadc
Update buffer in the statusbar
2010-11-13 12:40:48 +01:00
Moritz Lipp
98d42ed3ce
Begin to test config structure
2010-11-12 13:48:18 +01:00
Moritz Lipp
38ec3eea66
New file structure
2010-11-10 19:18:01 +01:00
Sebastian Ramacher
48a2991333
Display scoll percentage in statusbar ( Closes #58 ).
...
Thank's to acieroid.
2010-11-03 20:33:39 +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
012e6de85a
Check for ~ in save command
2010-10-30 22:57:39 +02:00
Moritz Lipp
77fb72f509
Reload fix when no file is opened
2010-10-30 10:08:57 +02:00
Moritz Lipp
da344ac8b9
Color window and viewport
...
Thanks to Strom
2010-10-25 14:10:10 +02:00
Moritz Lipp
da61a695bd
Merge branch 'master' of pwmt.org:zathura
2010-10-18 20:16:51 +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
ba11e68e94
Remove those NOTREACHED comments
2010-10-13 09:02:59 +02:00
Sebastian Ramacher
da261141fd
Add noreturn attribute to out_of_memory ( closes #43 )
...
Add __attribute__((noreturn)) to out_of_memory if supported by the compiler
(gcc, icc and clang).
2010-10-11 19:54:42 +02:00
Sebastian Ramacher
9d00d67ed2
Apply patches from #43
...
* Protect LENGTH with surrounding parantheses.
* Use foo(void) for functions taking no arguments.
* Remove dead assignments.
Thanks to kaworu.
2010-10-11 19:41:43 +02:00
Sebastian Ramacher
3210e5be28
some error handling and close handle before deleting the temporary file
2010-10-04 10:08:21 +02:00
Sebastian Ramacher
9fa858b2ff
don't hardcode stdin fileno
2010-10-04 09:57:46 +02:00
Sebastian Ramacher
ff0adf4ddc
correctly define _BSD_SOURCE and _XOPEN_SOURCE macros
2010-10-04 09:55:21 +02:00
Sebastian Ramacher
cd08c8be70
fixes for memory issues
...
Somes fixes for memory related issues. Makes filename and password handling more
robust.
2010-09-27 18:30:45 +02:00
Sebastian Ramacher
6052169921
fix a memory leak
2010-09-27 18:21:26 +02:00
Sebastian Ramacher
b280852f2d
revert last commit ... that didn't fix anything
2010-09-27 18:20:48 +02:00
Sebastian Ramacher
88687c3f0a
solution for #6 ?
...
This could be a solution for #6 but needs some testing first.
2010-09-27 17:50:59 +02:00
Sebastian Ramacher
3002d8e476
read from stdin: really delete temporary file
2010-09-27 17:19:56 +02:00
Sebastian Ramacher
3017534627
support reading from stdin ( closes #32 )
...
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.
2010-09-27 17:01:09 +02:00
Sebastian Ramacher
660567e7df
add function to get home dir if for some weird reason $HOME is not set
2010-09-27 15:57:29 +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
8bbc184fd0
Fixed printing
2010-08-01 13:40:04 +02:00
Moritz Lipp
d0f7b3218a
Fixed segmentation fault when mapping keys
2010-07-30 11:11:43 +02:00
Moritz Lipp
f9e418be4c
Fix some memory leaks
2010-07-25 20:26:16 +02:00
Moritz Lipp
2b90f23eae
Reset inputbar handler
2010-07-24 00:52:36 +02:00
Moritz Lipp
4be866a0ef
Change to NORMAL mode in isc_abort
2010-07-24 00:52:06 +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
802c1ae24e
Updated clear command
2010-07-20 20:42:33 +02:00
Moritz Lipp
d4cd5c22a2
Began to clean up some memory issues in the complete function (TODO)
2010-07-18 20:08:51 +02:00
Moritz Lipp
3bcc7b28e6
Fixed some memory issues
2010-07-18 19:52:05 +02:00
Moritz Lipp
4533e58388
Escape uri/filename in open_uri/cmd_print
2010-07-15 22:39:48 +02:00
Moritz Lipp
25f2f942e8
Fix segmentation fault in nav_index
2010-07-13 08:36:16 +02:00
Moritz Lipp
eae4e48877
Delete line to start
...
Thanks to n0nsense
2010-07-08 12:35:57 +02:00
Moritz Lipp
40a0a7cf9c
Updated completion
2010-07-05 17:57:19 +02:00
Moritz Lipp
6d321e2ec5
Optional parameters for print command
2010-07-05 12:35:38 +02:00
Moritz Lipp
2dde57fcd7
Improved completion
2010-07-04 21:47:19 +02:00
Moritz Lipp
7da1a65b2f
Fixed completion groups
2010-07-04 11:19:43 +02:00
Moritz Lipp
9e58af0113
Simplified development of cc functions
2010-07-04 10:35:15 +02:00
Moritz Lipp
2f027ed1ad
Define number of completion items
2010-07-04 10:25:11 +02:00
Moritz Lipp
ab2288b241
Completion fix 1
2010-07-03 19:10:07 +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
9bb9e495f6
Append slashes to directories in cc_open
...
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
2010-06-24 14:07:26 +02:00
Moritz Lipp
ad5dcd0e70
Updated statusbar string manipulation
2010-06-22 01:57:08 +02:00
Moritz Lipp
2f1f105f73
Set show_inputbar/statusbar
2010-06-21 21:00:59 +02:00
Moritz Lipp
d7c50dc1a0
Clean event->state
2010-06-21 18:27:44 +02:00
Moritz Lipp
90182e55d0
Restore adjustment after reloading the document
2010-06-21 16:27:38 +02:00
Moritz Lipp
403c63c510
Fix shortcut evaluation
2010-06-21 16:19:06 +02:00
Moritz Lipp
3604922a95
Behaviour when buffer is not empty
...
This commit does not allow every shortcut
when the buffer is not empty
2010-06-19 16:42:53 +02:00
Moritz Lipp
5db3407822
Clean event->state
...
Thanks to vimprobable
2010-06-19 16:19:40 +02:00
Moritz Lipp
d631c27f8c
Clean up shortcuts
2010-06-19 10:33:36 +02:00
Moritz Lipp
fcceffa973
Update shortcut detection
2010-06-19 09:58:40 +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
52f747a9c1
Do not process empty lines
...
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.
2010-06-18 10:35:15 +02:00
Moritz Lipp
3f6c19bbed
Merge branch 'zathurarc'
...
Conflicts:
zathura.c
2010-06-17 00:53:41 +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
b687cce13c
Added error message
2010-06-16 22:52:28 +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
824b56a032
Support for tabbed
...
This commit makes it possible to use zathura inside of tabbed by
running zathura with the -e argument.
2010-06-16 20:25:08 +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
59a6c7c560
Update sc_reload behaviour
2010-06-15 10:17:38 +02:00
Moritz Lipp
959fdb56d3
Check document health in sc_reload
...
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.
2010-06-15 09:39:22 +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
f9f5e1b667
Update scroll behaviour for half/full page scrolling
2010-06-14 17:22:06 +02:00