Commit graph

139 commits

Author SHA1 Message Date
neldoreth
023866c58b 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
neldoreth
1cab6c69c9 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
neldoreth
a6715266f0 Highlight search results 2010-03-28 20:59:25 +02:00
neldoreth
50093e26fa Updated search function
Incremental search is disabled now by default
2010-03-08 21:49:52 +01:00
neldoreth
71a36b5738 Updates search function
Do not use pthread_cancel to stop the search thread
2010-03-08 21:10:39 +01:00
neldoreth
8ebb802850 Auto-refresh window
The window refreshes itself now when the document changes.
2010-03-08 20:52:39 +01:00
neldoreth
e172600c97 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
neldoreth
d8066c0564 Updated manpage 2010-02-15 02:33:53 +01:00
neldoreth
c2253a975d Replace visible check 2010-02-02 20:37:09 +01:00
neldoreth
165cedc275 Updated index links 2010-02-02 17:17:03 +01:00
neldoreth
3adbf50ff7 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
neldoreth
8f1d13bf2a Delete bookmark 2010-01-31 21:24:33 +01:00
neldoreth
931b466a8c 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
neldoreth
f18bca3f0c Save last viewed page in bookmark file 2010-01-31 12:35:49 +01:00
neldoreth
2cf46bebd0 Open (and create) key file 2010-01-31 11:44:33 +01:00
neldoreth
cb0cdcc35d Create zathura directory 2010-01-31 02:03:28 +01:00
neldoreth
5180e4c2e0 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
neldoreth
90d412f189 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
neldoreth
76d1d6c1b7 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
neldoreth
7eaf56a89b SF in set function
The function now checks if a parameter is given or not
2010-01-29 11:10:49 +01:00
neldoreth
44281ec6e6 Mistake in the search function
Corrected a little mistake in the search function so that it does not
start the search on the current page
2010-01-28 23:35:42 +01:00
neldoreth
5ee67c721c Autoadjust size on startup 2010-01-28 14:14:01 +01:00
neldoreth
0b596d3c57 Adjust width
Implemented the function to adjust the page size to the width or fit
best in the given window area.
2010-01-28 14:06:27 +01:00
neldoreth
192f8f1fe1 Added zoom buffer command
Now you can adjust the zoom level by typing commands like
"25Z" etc.
2010-01-28 13:57:54 +01:00
neldoreth
53ae254abd Create new page in the search function 2010-01-21 11:36:13 +01:00
neldoreth
24b83757cc Remove mutex_unlock
Why has it exist anyway?
2010-01-21 11:07:08 +01:00
neldoreth
fb90a72456 Update README
It seems that you have tu use newer versions of the libraries
2010-01-21 10:57:49 +01:00
neldoreth
660add53ef Cancel the search thread
Do not cancel the search thread if it is not possible
2010-01-21 01:46:53 +01:00
neldoreth
d970eb21cd Removed render thread
This commit removes the render thread and provides one global
drawing area that is used to show the pages.
2010-01-20 23:46:13 +01:00
neldoreth
3e2738ffab Save images and attachments 2010-01-03 16:49:50 +01:00
neldoreth
fd004fdb1b Added export function and export completion 2010-01-03 16:25:51 +01:00
neldoreth
ae94124db9 Check strlen in search function 2010-01-03 16:18:36 +01:00
neldoreth
7595882d08 Updated rectangle calculation 2010-01-02 23:34:34 +01:00
neldoreth
143e1abe62 Search thread 2010-01-02 16:31:25 +01:00
neldoreth
9de87414bd } 2010-01-02 14:24:44 +01:00
neldoreth
8128fe0d53 Began highlighting search results 2010-01-02 14:23:49 +01:00
neldoreth
494bddf8d0 Show document information 2010-01-02 02:04:43 +01:00
neldoreth
f64954b189 Lock each page 2010-01-02 00:45:16 +01:00
neldoreth
5e535d15d0 Implemented cmd_print 2010-01-02 00:36:32 +01:00
neldoreth
2a9a52249e cc_print
List all printers, not the best way
2010-01-02 00:25:18 +01:00
neldoreth
22d2d19b8b Show index if possible 2010-01-01 22:52:45 +01:00
neldoreth
0a1f97973e Replace ~ with $HOME 2010-01-01 20:56:31 +01:00
neldoreth
41f24798aa Close command 2010-01-01 20:46:07 +01:00
neldoreth
3067c9144d Render thread lock 2010-01-01 20:26:31 +01:00
neldoreth
0d6fd356e2 Fix cc_set 2010-01-01 20:00:56 +01:00
neldoreth
46ab86a216 Added settings and set function
Added an array to define settings and an function ":set" to
set them
2010-01-01 19:52:20 +01:00
neldoreth
f2cd9ec7d1 Rotate mutex 2010-01-01 17:18:48 +01:00
neldoreth
485963f21f Revert video option 2010-01-01 15:34:01 +01:00
neldoreth
e4456ab572 Viewing mode 2010-01-01 15:11:43 +01:00
neldoreth
54a6522f1d Begin re-rendering on current page 2010-01-01 14:33:25 +01:00
neldoreth
f80614a799 Added mutex for scale variable 2010-01-01 14:18:09 +01:00
neldoreth
e873745f71 Open file via parameter 2010-01-01 13:54:21 +01:00
neldoreth
bfe15071f1 Jump to begin/end/page 2009-12-30 00:55:03 +01:00
neldoreth
b015acbb3e Hide/Show scrollbar switch 2009-12-30 00:47:29 +01:00
neldoreth
f8c733604d Show PDF pages 2009-12-30 00:44:14 +01:00
neldoreth
d64947cc31 Added scrolling 2009-12-30 00:21:29 +01:00
neldoreth
10035f593f Show page 2009-12-29 23:48:28 +01:00
neldoreth
b10c53d07c Added own viewport to change the views content 2009-12-29 22:33:40 +01:00
neldoreth
063a07d4f4 Added function to switch view 2009-12-28 21:42:55 +01:00
neldoreth
43d0912b7a callback for drawing 2009-12-28 21:18:54 +01:00
neldoreth
1e9f6dd191 Render pages in a thread 2009-12-28 20:10:47 +01:00
neldoreth
92e398ad12 Fixed scale 2009-12-28 20:02:07 +01:00
neldoreth
99d934389c Added rendering function 2009-12-28 19:50:30 +01:00
neldoreth
b08a17e4a6 Update scale variable 2009-12-28 19:24:15 +01:00
neldoreth
0c611cd2ff Show scale status 2009-12-28 19:03:26 +01:00
neldoreth
727c0e9ee3 Implemented buffer commands goto and zoom 2009-12-28 18:34:00 +01:00
neldoreth
a4cbca2503 Fixed path completion 2009-12-28 17:14:23 +01:00
neldoreth
8a0d3cf533 File completion
Began to implement the file completion
2009-12-28 00:59:06 +01:00
neldoreth
43c90f6b0c Navigate through pages 2009-12-26 18:16:51 +01:00
neldoreth
a30682ed7f Fix warning 2009-12-26 17:57:46 +01:00
neldoreth
0517b5b5d6 Set page and update status 2009-12-26 17:44:13 +01:00
neldoreth
398ef683f4 Updated error handling 2009-12-26 17:18:45 +01:00
neldoreth
cc176a0b97 Add struct for PDF functioanlity 2009-12-26 16:08:33 +01:00
neldoreth
71eab008c7 Toggle status/inputbar 2009-12-26 16:05:03 +01:00
neldoreth
35658e2533 Added commands and function
Added commands to zathura without any functionality
and edited the current configuration
2009-12-26 15:55:32 +01:00
neldoreth
1278a9e9dd Updated interface from zjui project
The whole project files have been replaced by the first version
of zjui, a side project for the user interface. Additionally there
has been an update of the Makefile and the configuration.

Mentionable features:
  * Buffered commands
  * Statusbar
  * Advanced completion
  * Notification system
  * Modes and mode-depending shortcuts
2009-12-26 14:42:57 +01:00
neldoreth
cc029fc764 Page wrap on scroll, Centered PDF
Added following functionality:
  * Center the PDF within the window
  * Jump to next/previous page if you scroll of the end/beginning
    of the page

Fixes and other changes:
  * Auto-adjust zoom when the page was rotated

Important note:
Above changes have been provided by sykora: Thank you very much
for your effort!
2009-10-30 00:16:43 +01:00
neldoreth
6dc6a8a074 Show document index
Added fowolling functionality:
  * Document index
2009-09-20 16:25:56 +02:00
neldoreth
ac2f6751a7 Command history
Added following functionality:
  * Command history

Fixes and other changes:
  * Reduced the toggle inputbar code
2009-09-19 15:53:35 +02:00
neldoreth
f823fed8c7 Multiple printer support, destination links
Added following functionality:
  * Multiple printer can be set in the configuration file or a new
    one can be named while executing the print command
  * It is possible to use ~ in the open and export command
  * Clicking on destination links works now
  * Show/Hide inputbar

Fixes and other changes:
  * Updated the dependencies to the right versions
  * Switched j/k in the scrolling command
  * Added command shortcuts
  * Fixed the rotation
  * Link command is for the preset only for showing external
    links
  * Added some command explanation in the man page
  * Adjust window on startup
2009-09-19 13:35:14 +02:00
neldoreth
bf9926d60f Search fix, overworked Makefile
A little fix that solves the forwards, backwards searching problem
and an overworked, cleaned up Makefile
2009-09-12 11:52:32 +02:00
neldoreth
20c23efbed Form refresh
A little fix that refreshes the page after the form show command
has been executed
2009-09-11 21:03:33 +02:00
neldoreth
1371a85142 Edit form fields and export PDF
Added following functionality:
  * Save the PDF file
  * Show and edit form fields

Fixes and other changes:
  * Fixed internal saved file path

Other:
  * Added manpage
2009-09-10 23:46:40 +02:00
neldoreth
c148c4d599 Filepath
Using realpath() to get and use the actual absolute path
of the given file
2009-08-30 23:27:22 +02:00
neldoreth
c1fd49321a Printing, Image and attachment export
Added following functionality:
  * Save images
  * Save attachments
  * Simple printing support

Fixes and other changes:
  * Additional rectangle calculation function
  * Search and link clicking fix

Other:
  * Added license file
2009-08-29 20:29:13 +02:00
neldoreth
646c4c1ac2 Highlight search results, Clickable links, ...
Added following functionality:
  * Highlight search results
  * Markup possibility for notification
  * Show PDF information
  * Show links on page
  * Click and open link in browser

In progress and todo:
  * Search function in a own thread
  * Export command: Export images, attachments

Fixes and other changes:
  * Set default background to drawing area and removed border
  * Set default window width and height
2009-08-15 12:35:07 +02:00
neldoreth
9134c458aa Advanced notification - Basic search function
Added following functionality:
  * Notification via vanishing pop-ups, different
    notification levels and changeable text2
  * Basic search function
  * Check file existence
  * Scroll to begin or bottom of a page

Fixes and other changes:
  * Fixed unnecessary high processor load
  * Fixed update status
  * Added variable for number of pages
2009-08-13 22:55:36 +02:00
neldoreth
00e5216940 Basic PDF functionality
With this commit Zathura gains PDF refered functionality and
therefore several shortcuts and commands

Added following functionality:
  * Open PDF file (via command or argument)
  * Scroll on the current page
  * Thumb through the PDF file
  * Rotate PDF page
  * Zoom in and out

In progess:
  * Search PDF
  * Better notification system
2009-08-12 21:52:10 +02:00
neldoreth
92d4bac04f Initial commit 2009-08-11 23:18:50 +02:00