Commit Graph

466 Commits

Author SHA1 Message Date
Benoît Knecht
27c291758e Add a '--page' option to open at the specified page
If '--page [number]' (or '-P [number]') is given on the command-line,
the document is opened at the specified page number. Negative numbers
are allowed, and denote a page number starting from the end of the
document.

See issue 275 <http://bugs.pwmt.org/issue275>.

Reported-by: bob <sean258@gmail.com>
2013-03-17 11:30:22 +01:00
Sebastian Ramacher
fd07d3f5cf Merge branch 'develop' of pwmt.org:zathura into develop 2013-03-14 22:41:57 +01:00
Sebastian Ramacher
47eddd0e86 Implement sqlite backend for input history
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2013-03-14 22:20:51 +01:00
Sebastian Ramacher
b5dbe9ff6d Drop zathura_db_free
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2013-03-14 21:30:40 +01:00
Moritz Lipp
42cae85f80 Show warning if document does not contain any pages 2013-03-11 23:26:14 +01:00
Sebastian Ramacher
438c9cdc9f Add statusbar-basename option
Thanks to oblique for the patch.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2013-02-28 16:20:54 +01:00
Rob Cornish
723f1535e1 Document saves with current basename if given a directory
Currently, if :write is given a directory name as its argument, it fails with the "Failed to save document." error. This can sometimes be quite annoying: for instance, when viewing documents that have been downloaded to /tmp from the web, I often find myself wanting to hang on to file without changing its file name. In order to do so, I either have to leave Zathura and cp the file or else retype the whole filename after :write, neither of which are too convenient.

The following patch would make :write work sort of how mv does: if its argument is a currently existing directory, it will be inferred that the user wants to save the document in that directory using its current basename.

Signed-off-by: Sebastian Ramacher <sebastian@ramacher.at>
2013-01-17 14:28:19 +01:00
Sebastian Ramacher
a6e6c3f108 demote some info-level messages to debug 2013-01-15 11:31:35 +01:00
Rob Cornish
1a6b03fc62 Fixed reverse searching behaviour to be more like less/vi
Signed-off-by: Sebastian Ramacher <sebastian@ramacher.at>
2012-12-19 00:29:31 +01:00
Benoît Knecht
824843a917 Correct misspellings of the word "synctex"
Both in the documentation and in function names, "synctex" was sometimes
spelled "syntex" or "syntec".

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-06 20:34:14 +01:00
Moritz Lipp
89e7832047 Update style 2012-10-09 01:12:18 +02:00
Moritz Lipp
ac88923e5b Print error message if directory creation failed 2012-10-05 00:51:28 +02:00
Sebastian Ramacher
e79a48452f Honor the current zoom level.
Otherwise jump positions are off after changing the zoom level.
2012-09-02 00:44:58 +02:00
Abdó Roig-Maranges
eb67d97180 Implemented jumplist bound to ^o ^i
zathura records jumps through searches, index, links, etc. and enables to go
back and forth via ^o ^i.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-09-02 00:31:47 +02:00
Moritz Lipp
f6c6b4a883 En/Disable syntex support 2012-08-13 18:17:20 +02:00
Sebastian Ramacher
30bb64c53d Update German translation. 2012-08-05 15:56:35 +02:00
Moritz Lipp
ec554bc33d Parse command line arguments in main 2012-08-05 15:34:10 +02:00
Moritz Lipp
83865d8998 Use GtkGrid instead of GtkTable 2012-08-05 02:30:03 +02:00
Sebastian Ramacher
49116a0834 Synctex backwards synchronization
Thanks to Roland Schatz for the patch.
2012-07-13 15:39:16 +02:00
Sebastian Ramacher
79cdc73951 Use correct default values. 2012-07-13 14:05:07 +02:00
Moritz Lipp
627a0749bc Update style 2012-07-12 10:39:21 +02:00
Moritz Lipp
66b6fa65a1 Add --version command line argument 2012-07-12 10:37:58 +02:00
Sebastian Ramacher
6b41759cbb Add option to use basename in window title (Closes: #229) 2012-07-02 14:13:13 +02:00
Sebastian Ramacher
6d462f4732 Implement first-page-column.
Thanks to J. Commelin for the patch.
2012-06-27 22:34:16 +02:00
Sebastian Ramacher
aa2abd0bc4 more debug output 2012-06-20 16:41:01 +02:00
Glen Winters
7603897b84 Fixed data directory bug 2012-05-28 09:08:49 +02:00
Moritz Lipp
aee30212d1 Unref page widgets 2012-05-08 17:10:57 +02:00
Moritz Lipp
02582692f9 Fix two memory leaks 2012-05-08 17:02:18 +02:00
Moritz Lipp
583017a836 Apply adjust-open only to unknown files 2012-05-07 00:32:55 +02:00
Moritz Lipp
800d039293 Check for numeric events 2012-05-01 19:09:33 +02:00
Moritz Lipp
e4c145a67e Use set_adjustment in position_set_delayed_impl 2012-05-01 13:39:22 +02:00
Moritz Lipp
b4f8fe3b5c Restore 'pages-per-row' value 2012-04-29 06:26:38 +02:00
Moritz Lipp
0c0a5f266c Open multiple arguments
It is now possible to open multiple files by passing them as additional
arguments. The password can now be set with the -w/--password parameter
instead of the argument after the filename.
2012-04-27 12:44:05 +02:00
Moritz Lipp
abe6755558 Added missing initializer 2012-04-24 13:46:00 +02:00
Moritz Lipp
a86940b3f4 Implement ZATHURA_LINK_GOTO_REMOTE 2012-04-22 11:11:36 +02:00
Moritz Lipp
adc9f41264 Introduce new link types 2012-04-22 10:04:46 +02:00
Moritz Lipp
6a30019b4e Add missing return value 2012-04-21 10:39:24 +02:00
Moritz Lipp
7d92d54539 Implemented marks 2012-04-21 04:59:58 +02:00
Moritz Lipp
488ab101e9 Set default adjust mode to none 2012-04-21 00:00:03 +02:00
Moritz Lipp
370deafb92 Save pages-per-row/position_x/position_y in database 2012-04-20 23:35:48 +02:00
Moritz Lipp
798c97f4a6 Introduce zathura_fileinfo_t and update database interface 2012-04-20 21:15:03 +02:00
Moritz Lipp
f239ea145c Free index if document gets closed 2012-04-16 09:17:50 +02:00
Sebastian Ramacher
d9f5889415 Use the information from the file info. 2012-04-07 16:00:51 +02:00
Moritz Lipp
97247f41ca Unhitch zathura_t from document_t/page_t/plugin_manager_t 2012-04-03 09:02:45 +02:00
Moritz Lipp
025c995d89 Introduce plugin manager 2012-04-01 18:32:16 +02:00
Moritz Lipp
334b4fbb95 Introduce and use zathura_document wrapper functions 2012-03-27 21:59:35 +02:00
Moritz Lipp
4ade2c1472 Introduced plugin.h and plugin-api.h 2012-03-27 13:30:04 +02:00
Moritz Lipp
efc108fbe2 Introduced page.h 2012-03-26 14:44:56 +02:00
Moritz Lipp
fab515a42c Readjust window if new document has been opened 2012-03-25 20:31:19 +02:00
Moritz Lipp
90796b5b5c Added :offset command and some style updates 2012-03-24 18:27:10 +01:00
Sebastian Ramacher
64905f282b Remove invisible pages from the memory. 2012-03-24 16:15:34 +01:00
Sebastian Ramacher
9cacecaa5b A missing comma. 2012-03-23 21:21:07 +01:00
Sebastian Ramacher
0c85d41c6c Add command line option to set the log level. 2012-03-23 19:28:20 +01:00
Moritz Lipp
a9b6ac1ac8 Remove unnecessary initializations 2012-03-22 17:15:08 +01:00
Sebastian Ramacher
21579797cd Update translations. 2012-03-16 15:59:23 +01:00
Sebastian Ramacher
9fe03f72e2 Allow page-padding to be changed. 2012-03-16 15:47:30 +01:00
Sebastian Ramacher
b4094c4c75 Translate 'No name'. 2012-03-16 13:42:15 +01:00
Moritz Lipp
3bc6224976 Update title with file path 2012-03-16 07:58:55 +01:00
Moritz Lipp
593d8063fe Close open document in cb_destroy 2012-03-07 01:11:18 +01:00
Moritz Lipp
0049b6fa4b Notify if an error occurs in the :write command 2012-03-04 23:54:03 +01:00
Sebastian Ramacher
667c821600 Merge branch 'develop-database' into develop
Conflicts:
	database-plain.c
2012-03-04 18:52:31 +01:00
Sebastian Ramacher
9ac4bdf0b0 A first step towards localization. 2012-03-04 18:35:16 +01:00
Sebastian Ramacher
4b559e585b Implement support to use both database backends. 2012-03-04 15:56:54 +01:00
Sebastian Ramacher
557f968875 Don't overwrite variables stored in file_monitor (Closes: #120) 2012-03-02 20:34:41 +01:00
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