Sebastian Ramacher
57f4ae817a
don't hardcode stdin fileno
2010-10-04 09:57:46 +02:00
Sebastian Ramacher
0818c0c9e3
correctly define _BSD_SOURCE and _XOPEN_SOURCE macros
2010-10-04 09:55:21 +02:00
Sebastian Ramacher
a2771c1e23
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
83811fc398
fix a memory leak
2010-09-27 18:21:26 +02:00
Sebastian Ramacher
6168bf1b68
revert last commit ... that didn't fix anything
2010-09-27 18:20:48 +02:00
Sebastian Ramacher
806f0e0518
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
971c20c1dc
read from stdin: really delete temporary file
2010-09-27 17:19:56 +02:00
Sebastian Ramacher
58723a9313
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
6d3a5bae92
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
17c5ec66d0
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
2a0ed76de9
Fixed printing
2010-08-01 13:40:04 +02:00
Moritz Lipp
5fb26bd6c1
Fixed segmentation fault when mapping keys
2010-07-30 11:11:43 +02:00
Moritz Lipp
3213792ba1
Fix some memory leaks
2010-07-25 20:26:16 +02:00
Moritz Lipp
bc791ca517
Reset inputbar handler
2010-07-24 00:52:36 +02:00
Moritz Lipp
72fcf073c7
Change to NORMAL mode in isc_abort
2010-07-24 00:52:06 +02:00
Moritz Lipp
8847f34afe
Allow configurable modes
2010-07-24 00:51:47 +02:00
Moritz Lipp
babaeacbf8
Fixed some quoating issues
...
Thanks to Sebastinas
2010-07-23 14:06:05 +02:00
Moritz Lipp
b541f617ae
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
98bf13102c
Read global configuration file
...
Thanks to Sebastinas
2010-07-22 23:27:17 +02:00
Moritz Lipp
49e4e8abe1
Updated clear command
2010-07-20 20:42:33 +02:00
Moritz Lipp
4ff2e92630
Began to clean up some memory issues in the complete function (TODO)
2010-07-18 20:08:51 +02:00
Moritz Lipp
14b7cb633e
Fixed some memory issues
2010-07-18 19:52:05 +02:00
Moritz Lipp
2c0b6d936a
Escape uri/filename in open_uri/cmd_print
2010-07-15 22:39:48 +02:00
Moritz Lipp
047c6976d4
Fix segmentation fault in nav_index
2010-07-13 08:36:16 +02:00
Moritz Lipp
8a20451527
Delete line to start
...
Thanks to n0nsense
2010-07-08 12:35:57 +02:00
Moritz Lipp
66ebc2e198
Updated completion
2010-07-05 17:57:19 +02:00
Moritz Lipp
6293069f54
Optional parameters for print command
2010-07-05 12:35:38 +02:00
Moritz Lipp
543dc82d71
Improved completion
2010-07-04 21:47:19 +02:00
Moritz Lipp
6153f743c7
Fixed completion groups
2010-07-04 11:19:43 +02:00
Moritz Lipp
eaed702e2d
Simplified development of cc functions
2010-07-04 10:35:15 +02:00
Moritz Lipp
a35da19b6e
Define number of completion items
2010-07-04 10:25:11 +02:00
Moritz Lipp
a70cd3c900
Completion fix 1
2010-07-03 19:10:07 +02:00
Moritz Lipp
5cbc7de33f
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
10526bf794
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
741e247551
Updated statusbar string manipulation
2010-06-22 01:57:08 +02:00
Moritz Lipp
0b5ad16f54
Set show_inputbar/statusbar
2010-06-21 21:00:59 +02:00
Moritz Lipp
58b5584afd
Clean event->state
2010-06-21 18:27:44 +02:00
Moritz Lipp
b4415870a3
Restore adjustment after reloading the document
2010-06-21 16:27:38 +02:00
Moritz Lipp
f31279c204
Fix shortcut evaluation
2010-06-21 16:19:06 +02:00
Moritz Lipp
3bd6523074
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
e1d76edcf6
Clean event->state
...
Thanks to vimprobable
2010-06-19 16:19:40 +02:00
Moritz Lipp
bd3f292afc
Clean up shortcuts
2010-06-19 10:33:36 +02:00
Moritz Lipp
2913fd5dac
Update shortcut detection
2010-06-19 09:58:40 +02:00
Moritz Lipp
0e472ee74d
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
37b591905b
Set adjust_open and map zoom command
2010-06-18 11:03:11 +02:00
Moritz Lipp
ad0d890303
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
a2edaff96f
Merge branch 'zathurarc'
...
Conflicts:
zathura.c
2010-06-17 00:53:41 +02:00
Moritz Lipp
58d42bf329
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
c6a9d72f36
Simple map function without any parsing
2010-06-16 23:13:25 +02:00
Moritz Lipp
fb2d8cc830
Added error message
2010-06-16 22:52:28 +02:00