Commit Graph

122 Commits

Author SHA1 Message Date
Moritz Lipp
88d76762f5 Fixed typo on mutex 2010-05-11 20:55:21 +02:00
Moritz Lipp
5a0e067dce Highlight search results again
This commit is a incomplete patch to highlight the search
results again.
2010-05-11 20:45:47 +02:00
Moritz Lipp
bdc6f33325 Escape filenames 2010-05-11 20:09:20 +02:00
Moritz Lipp
473e51b8dc Fix document update feature 2010-05-09 22:28:25 +02:00
Moritz Lipp
0b2c7c3a12 Activate label mode only when reasonable
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.
2010-05-06 20:31:53 +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
5e45c8d608 Use labels in buffered goto command
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.
2010-05-05 12:51:18 +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
Moritz Lipp
273ba0c642 Updated key bindings
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.
2010-04-27 11:28:17 +02:00
Moritz Lipp
0839150873 Fix make uninstall
Correction of the uninstall section in the Makefile.
Thanks to Laen.
2010-04-14 23:56:17 +02:00
Moritz Lipp
f28700ea46 Activate incremental search
This commit reactivates the incremental search and defines
that special commands that are set get called all the time
an input occurs are not evaluated in the activate section.
2010-04-12 19:59:55 +02:00
Moritz Lipp
cc3bb4d494 Fixed zoom function
This commit repairs the zoom function that did not work through the
automatic adjust patch.
2010-04-12 19:30:48 +02:00
Moritz Lipp
e5afcbd01e Check for opened document in cb_draw 2010-04-12 17:36:58 +02:00
Moritz Lipp
e31857a082 Automatically recolor document on startup
This commit adds an additional setting that is used
to control the recoloring of the document on startup.
2010-04-12 09:36:14 +02:00
Moritz Lipp
7e46030848 Auto-adjustment when opening a document
This commit fixes the automatic adjustment of the view
when opening a document.
2010-04-12 09:31:56 +02:00
Moritz Lipp
a2d4a9e6a7 version 0.0.3 2010-04-11 21:29:43 +02:00
Moritz Lipp
0152352647 Implemented the save function
The document gets saved to the given path.
2010-04-11 21:12:30 +02:00
Moritz Lipp
3999458f11 Fix toggle_index: WIDGET_REALIZED_FOR_EVENT error
Clicking on an arrow in the index tree view caused an
"changed" event that was liable to crash zathura. This
commit cleans up the sc_toggle_index command and fixes
the described error by pre-selecting the first item in
the tree.
2010-04-11 20:56:16 +02:00
Moritz Lipp
a2309feacf Follow internal links or upen URI in browser
This commit finishes the follow command by adding the functionality
of follow links / or open them with a web browser.
2010-04-11 14:18:49 +02:00
Moritz Lipp
a612ae3ae3 Parse hint token and validate it
The entered token is parsed for an integer and
validated for a correct hint id.
2010-04-11 12:53:45 +02:00
Moritz Lipp
1d3bae94f4 Update inputbar handler
If the follow command has been activated, zathura changes the
"activate" handler of the inputbar to parse the link zathura should
follow.
2010-04-11 12:31:18 +02:00
Moritz Lipp
fbbd4bb3a6 Introduced sc_follow command
This command scans the current page for links, highlightes and
numerates them.
2010-04-11 12:00:27 +02:00
Moritz Lipp
f64b82919a Show/hide the document information
This patch fixes the document information feature, now it is
possible to open up the document information and hide it again.
2010-04-11 11:18:33 +02:00
Moritz Lipp
f928221f30 Recolor the page instead of inverting the colors
This patch makes it possible to define two colors
that are used for recoloring the document pages instead
of the classic color reverting.

For the old behaviour set recolor_darkcolor to "#FFFFFF"
and recolor_lightcolor to "#000000".

All credit of this commit belongs to fedcer (fedcer@gmail.com).
2010-04-11 10:47:09 +02:00
Moritz Lipp
d5228eba92 Search function and some memory leaks
This patch fixes the search function and resolves
some memory leaks and includes following commits of
int3's repository:

  * Fix up some mutexes
  * Cleaned up some memory leaks
  * Escape filenames
  * Remove all threading operations
  * Make search thread properly without crashes and deadlocks
  * Re-enabled inotify auto-update
  * Clean up unused lock

All credit of this commit belong to int3 (jezreel@gmail.com)
for his effort and work for this project. Thank you.
2010-04-10 14:45:48 +02:00
Moritz Lipp
0fba6ee9a3 Highlight search results 2010-03-28 20:59:25 +02:00
Moritz Lipp
74dbf7f267 Fix some typos in the man page
Thanks to pipping
2010-03-15 08:09:33 +01:00
Moritz Lipp
63e1894523 Patch for zathura build system
A patch to zathuras build system to get zathura
included in gentoos portage. Thanks a lot to ssuominen!
2010-03-12 18:23:41 +01:00
Moritz Lipp
f84f6a42f8 Updated search function
Incremental search is disabled now by default
2010-03-08 21:49:52 +01:00
Moritz Lipp
c3b3403a24 Updates search function
Do not use pthread_cancel to stop the search thread
2010-03-08 21:10:39 +01:00
Moritz Lipp
b460faf198 Auto-refresh window
The window refreshes itself now when the document changes.
2010-03-08 20:52:39 +01:00
Moritz Lipp
7b1bc17b1e Reload modified PDF document
This commits add the functionality that when the PDF file has been
rewritten in the background (e.g.: from another program), zathura
reloads the document to refresh the page.
2010-03-08 20:08:59 +01:00
Moritz Lipp
e250cbc5d5 Merge branch 'master' of 93.90.177.129:zathura 2010-03-08 16:17:21 +01:00
Moritz Lipp
1da684cdfa Updated manpage 2010-03-08 16:17:02 +01:00
Moritz Lipp
680f975a76 Version 0.0.2 (merged to master) 2010-02-26 11:10:45 +01:00
Moritz Lipp
4dd1deaf51 Version 0.0.2 2010-02-15 02:36:11 +01:00
Moritz Lipp
480469dcd6 Updated manpage 2010-02-15 02:33:53 +01:00
Moritz Lipp
b6c5b1e5bf Replace visible check 2010-02-02 20:37:09 +01:00
Moritz Lipp
08f68723b6 Updated index links 2010-02-02 17:17:03 +01:00
Moritz Lipp
8c7892c263 Updated print command 2010-02-02 17:08:02 +01:00
Moritz Lipp
2b072aa896 Fixed opening files containing spaces
Now it is possible to open files even if the contain white spaces. If
they do need a password, you can set it with the command: ":set password"
or specify it on startup: "./zathura file password".
2010-02-02 15:27:37 +01:00
Moritz Lipp
0c5f0dfb0c Delete bookmark 2010-01-31 21:24:33 +01:00
Moritz Lipp
db76477a18 Add, save and open bookmarks
It is now possible to save bookmarks with a specific names for a
document, so you can jump easily to important sections of the pdf
later on.
2010-01-31 21:07:27 +01:00
Moritz Lipp
539331a084 Save last viewed page in bookmark file 2010-01-31 12:35:49 +01:00
Moritz Lipp
f3858ac26e Open (and create) key file 2010-01-31 11:44:33 +01:00
Moritz Lipp
31672cd0ba Create zathura directory 2010-01-31 02:03:28 +01:00
Moritz Lipp
8d449e3ff7 Added support for markers
It is now possible to add markers by using "m" followed by the id key
that should identify the marker. To jump back to the page that is
represented by the marker "'" is used. To toggle between the latest
positions the command "''" is used.
2010-01-30 23:48:36 +01:00
Moritz Lipp
acf114b2ec Delete last character of the buffer
It is now possible to delete the last character of the buffer using the
backspace key
2010-01-29 13:42:24 +01:00
Moritz Lipp
7b17a793c7 Scroll buffer command
Added a buffer command to move to a specific percental
value of the alighment of the view window. E.g.: 25%
2010-01-29 13:18:25 +01:00