Commit Graph

172 Commits

Author SHA1 Message Date
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
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
b61b8ac2b6 Updated sc_scroll behaviour 2010-06-13 16:39:46 +02:00
Moritz Lipp
c441af5ed5 Change window title to filename 2010-06-12 09:47:07 +02:00
Moritz Lipp
f3e57c633d Prevent buffer overflow in realpath
This patch prevents a buffer overflow in the
realpath function.

Thanks to Abel Abraham Camarillo Ojeda
2010-06-06 19:27:10 +02:00
Moritz Lipp
62937222af Updated print command 2010-06-03 20:05:17 +02:00
Moritz Lipp
6f6478b0ad Added reload shortcut 2010-06-03 18:12:45 +02:00
Moritz Lipp
2efdabc6a0 Use GFileMonitor instead of inotify 2010-06-03 18:05:34 +02:00
Moritz Lipp
46e1a7c155 Fix toggle index 2010-06-03 17:11:49 +02:00
Moritz Lipp
9a5f94df41 Free some strings 2010-05-25 20:16:12 +02:00
Moritz Lipp
7a4c105705 Fixed off-by-one error 2010-05-25 09:03:02 +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
b6f367612b Fixed cmd_open 2010-05-24 17:25:12 +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
f0c0c7b8ee Fixed search result highlighting 2010-05-19 12:13:28 +02:00
Moritz Lipp
eadca8d216 Scroll after switching page 2010-05-18 23:11:38 +02:00
Moritz Lipp
b5531fed3e Fixed redrawing search result 2010-05-18 22:24:15 +02:00
Moritz Lipp
742f687da6 Merge branch 'mouse' of 93.90.177.129:zathura into mouse
Conflicts:
	config.def.h
	zathura.c
2010-05-18 01:09:59 +02:00
Moritz Lipp
af4a487da7 Rebase from master 2010-05-18 01:01:52 +02:00
Moritz Lipp
b33e33fd36 Custom selection style 2010-05-18 00:59:50 +02:00
Moritz Lipp
c38d89bb15 Select right text in rectangle
With this commit zathura selects the text in the selected
rectangle and copies it to the clipboard.
2010-05-18 00:59:23 +02:00
Moritz Lipp
ca9a381bb0 Calculate drawing rectangle and copy text to cb
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.
2010-05-18 00:59:23 +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
7007394634 Added GtkEventBox to catch mouse events
This commited introduces a GtkEventBox called document
that is responsible for catching all mouse events like
"released" or "motion".
2010-05-18 00:58:12 +02:00
Moritz Lipp
742c9770a2 Implemented scrolling 2010-05-18 00:57:37 +02:00
Moritz Lipp
6b852bec6d Scroll and click event callbacks defined
Two callbacks for "scroll" and "click" events
has been defined and connected to the view.
2010-05-18 00:57:37 +02:00
Moritz Lipp
d2973805c0 Custom selection style 2010-05-18 00:48:46 +02:00
Moritz Lipp
ee182e035a Select right text in rectangle
With this commit zathura selects the text in the selected
rectangle and copies it to the clipboard.
2010-05-18 00:22:42 +02:00
int3
ac0445457c Fix leak in State.pages 2010-05-14 17:30:00 +08:00
Moritz Lipp
1192099f65 Do not redraw search results 2010-05-13 11:39:20 +02:00