mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 12:05:59 +01:00
Updated manpage
This commit is contained in:
parent
b6c5b1e5bf
commit
480469dcd6
3 changed files with 137 additions and 108 deletions
|
@ -108,7 +108,7 @@ Command commands[] = {
|
||||||
{"print", "p", cmd_print, cc_print, "Print the document" },
|
{"print", "p", cmd_print, cc_print, "Print the document" },
|
||||||
{"rotate", "r", cmd_rotate, 0, "Rotate the page" },
|
{"rotate", "r", cmd_rotate, 0, "Rotate the page" },
|
||||||
{"set", "s", cmd_set, cc_set, "Set an option" },
|
{"set", "s", cmd_set, cc_set, "Set an option" },
|
||||||
{"quit", "q", cmd_quit, 0, "Quit zjui" },
|
{"quit", "q", cmd_quit, 0, "Quit zathura" },
|
||||||
{"write", "w", cmd_save, 0, "Save the document" },
|
{"write", "w", cmd_save, 0, "Save the document" },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
241
zathura.1
241
zathura.1
|
@ -1,135 +1,164 @@
|
||||||
.TH ZATHURA 1 zathura\-0.0
|
.TH ZATHURA 1 zathura\-0.0
|
||||||
.SH NAME
|
.SH NAME
|
||||||
zathura \- a pdf viewer
|
zathura \- a PDF viewer
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B zathura
|
.B zathura
|
||||||
.RB [\fIFILE\fR] [\fIPASSWORD\fR]
|
.RB [\fIFILE\fR] [\fIPASSWORD\fR]
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
zathura is a pdf viewer based on the poppler pdf rendering library
|
zathura is a highly customizable and functional PDF viewer based on the poppler
|
||||||
.SH USAGE
|
rendering library and the gtk+ toolkit. The idea behind zathura is an
|
||||||
.SS show and edit form fields
|
application that provides a minimalistic and space saving interface as well as
|
||||||
the form command separates between two actions: show, for showing and numerating all available forms on the current page; and set for modifying the value of the given form field:
|
an easy usage that mainly focuses on keyboard interaction.
|
||||||
.TP
|
|
||||||
.I form show
|
|
||||||
shows all values
|
|
||||||
.TP
|
|
||||||
.I form set [value number] [value]
|
|
||||||
modifying the value in the form field with the given value number
|
|
||||||
.SS export image and attachments
|
|
||||||
the export command expects the type of objects you want to export (images or attachments) and a existing path where it will save the files
|
|
||||||
.TP
|
|
||||||
.I export [image|attachments] [path]
|
|
||||||
.SS printing documents
|
|
||||||
the printing command is kept very simple and works with lp. it expects the range of sites you want to print and the id of a printer specified in the config.h file or the name of it
|
|
||||||
.TP
|
|
||||||
.I print [all|x|x-y] [printer id|printer name]
|
|
||||||
.SH DEFAULT SETTINGS
|
.SH DEFAULT SETTINGS
|
||||||
.SS Commands
|
.SS Commands
|
||||||
.TP
|
.TP
|
||||||
|
.B bmark
|
||||||
|
Bookmark current page
|
||||||
|
.TP
|
||||||
|
.B blist
|
||||||
|
List and open bookmark
|
||||||
|
.TP
|
||||||
|
.B close
|
||||||
|
Close current file
|
||||||
|
.TP
|
||||||
|
.B delbmark
|
||||||
|
Delete given bookmark
|
||||||
|
.TP
|
||||||
.B export
|
.B export
|
||||||
export images, the pdf or attachments to a specified directory
|
Export images or attached files
|
||||||
.TP
|
|
||||||
.B form
|
|
||||||
show and edit form fields
|
|
||||||
.TP
|
|
||||||
.B goto
|
|
||||||
go to a given page
|
|
||||||
.TP
|
.TP
|
||||||
.B info
|
.B info
|
||||||
show the document properties
|
Show information about the document
|
||||||
.TP
|
|
||||||
.B links
|
|
||||||
show existing links on the page
|
|
||||||
.TP
|
.TP
|
||||||
.B open
|
.B open
|
||||||
open a pdf document
|
Open a file
|
||||||
.TP
|
.TP
|
||||||
.B print
|
.B print
|
||||||
print the document or specific sites of it
|
Print the document
|
||||||
.TP
|
|
||||||
.B quit
|
|
||||||
close the program
|
|
||||||
.TP
|
.TP
|
||||||
.B rotate
|
.B rotate
|
||||||
rotate the page
|
Rotate the page
|
||||||
.TP
|
.TP
|
||||||
.B zoom
|
.B set
|
||||||
set the zoom level
|
Set an option
|
||||||
|
.TP
|
||||||
|
.B quit
|
||||||
|
Quit the program
|
||||||
|
.TP
|
||||||
|
.B write
|
||||||
|
Save the document
|
||||||
|
.SS Buffered commands
|
||||||
|
.TP
|
||||||
|
.B gg
|
||||||
|
Go to the first page
|
||||||
|
.TP
|
||||||
|
.B GG
|
||||||
|
Go to the last page
|
||||||
|
.TP
|
||||||
|
.B [0-9]+G
|
||||||
|
Go to the specified page
|
||||||
|
.TP
|
||||||
|
.B zI
|
||||||
|
Zoom in
|
||||||
|
.TP
|
||||||
|
.B zO
|
||||||
|
Zoom out
|
||||||
|
.TP
|
||||||
|
.B z0
|
||||||
|
Zoom to the original size
|
||||||
|
.TP
|
||||||
|
.B [0-9]+Z
|
||||||
|
Zoom to the given level
|
||||||
|
.TP
|
||||||
|
.B [0-9]+%
|
||||||
|
Move to the given position
|
||||||
.SS Shortcuts
|
.SS Shortcuts
|
||||||
.TP
|
.TP
|
||||||
.B ^f
|
.B ^n
|
||||||
next page
|
Toggle statusbar
|
||||||
.TP
|
.TP
|
||||||
.B ^b
|
.B ^m
|
||||||
previous page
|
Toggle inputbar
|
||||||
.TP
|
|
||||||
.B ^-
|
|
||||||
zoom in
|
|
||||||
.TP
|
|
||||||
.B ^+
|
|
||||||
zoom out
|
|
||||||
.TP
|
|
||||||
.B ^0
|
|
||||||
original size
|
|
||||||
.TP
|
|
||||||
.B ^r
|
|
||||||
rotate right
|
|
||||||
.TP
|
|
||||||
.B ^e
|
|
||||||
rotate left
|
|
||||||
.TP
|
.TP
|
||||||
.B ^q
|
.B ^q
|
||||||
quit program
|
Quit the program
|
||||||
.TP
|
.TP
|
||||||
.B ^p
|
.B Esc | ^c
|
||||||
print
|
Abort
|
||||||
.TP
|
.TP
|
||||||
.B n
|
.B ^i
|
||||||
search forwards
|
Revert the colors of the page
|
||||||
.TP
|
|
||||||
.B N
|
|
||||||
search backwards
|
|
||||||
.TP
|
|
||||||
.B h
|
|
||||||
scroll left
|
|
||||||
.TP
|
|
||||||
.B j
|
|
||||||
scroll up
|
|
||||||
.TP
|
|
||||||
.B k
|
|
||||||
scroll down
|
|
||||||
.TP
|
|
||||||
.B l
|
|
||||||
scroll right
|
|
||||||
.TP
|
|
||||||
.B PgUp
|
|
||||||
scroll to the top of the page
|
|
||||||
.TP
|
|
||||||
.B PgDown
|
|
||||||
scroll to the bottom of the page
|
|
||||||
.TP
|
|
||||||
.B i
|
|
||||||
best fit
|
|
||||||
.TP
|
|
||||||
.B u
|
|
||||||
adjust width
|
|
||||||
.TP
|
|
||||||
.B :
|
|
||||||
focus inputbar
|
|
||||||
.TP
|
|
||||||
.B o
|
|
||||||
open command
|
|
||||||
.TP
|
|
||||||
.B r
|
|
||||||
rotate command
|
|
||||||
.TP
|
|
||||||
.B z
|
|
||||||
zoom command
|
|
||||||
.TP
|
|
||||||
.B g
|
|
||||||
go to command
|
|
||||||
.TP
|
.TP
|
||||||
.B /
|
.B /
|
||||||
search
|
Search forwards
|
||||||
|
.TP
|
||||||
|
.B ?
|
||||||
|
Search backwards
|
||||||
|
.TP
|
||||||
|
.B Tab
|
||||||
|
Toggle index
|
||||||
|
.TP
|
||||||
|
.B J
|
||||||
|
Go to next page
|
||||||
|
.TP
|
||||||
|
.B K
|
||||||
|
Go to previous page
|
||||||
|
.TP
|
||||||
|
.B h
|
||||||
|
Scroll to the left
|
||||||
|
.TP
|
||||||
|
.B h
|
||||||
|
Scroll to the left
|
||||||
|
.TP
|
||||||
|
.B i
|
||||||
|
Scroll upwards
|
||||||
|
.TP
|
||||||
|
.B j
|
||||||
|
Scroll downards
|
||||||
|
.TP
|
||||||
|
.B j
|
||||||
|
Scroll to the right
|
||||||
|
.TP
|
||||||
|
.B i
|
||||||
|
Change to insert mode
|
||||||
|
.TP
|
||||||
|
.B v
|
||||||
|
Change to visual mode
|
||||||
|
.TP
|
||||||
|
.B :
|
||||||
|
Focus inputbar
|
||||||
|
.TP
|
||||||
|
.B o
|
||||||
|
Open a file
|
||||||
|
.TP
|
||||||
|
.B n
|
||||||
|
Search last search key forwards
|
||||||
|
.TP
|
||||||
|
.B N
|
||||||
|
Search last search key backwards
|
||||||
|
.TP
|
||||||
|
.B a
|
||||||
|
Adjust best fit
|
||||||
|
.TP
|
||||||
|
.B s
|
||||||
|
Adjust width
|
||||||
|
.TP
|
||||||
|
.B Backspace
|
||||||
|
Delete last character in the buffer
|
||||||
|
.SS Inputbar shortcuts
|
||||||
|
.TP
|
||||||
|
.B Up
|
||||||
|
Move up in the command history
|
||||||
|
.TP
|
||||||
|
.B Down
|
||||||
|
Move down in the command history
|
||||||
|
.TP
|
||||||
|
.B Tab | Shift + Tab
|
||||||
|
Tab completion
|
||||||
|
.TP
|
||||||
|
.B ^w
|
||||||
|
Delete last word
|
||||||
.SH CONFIGURATION
|
.SH CONFIGURATION
|
||||||
the complete configuration (appearance, shortcuts, commands and other settings) are stored in a seperate file (config.h) where you are able to change and edit everything according to your wishes
|
The complete configuration including the appearance and shortcuts of the program
|
||||||
|
are defined in a seperate file named config.h. In this file you are able to
|
||||||
|
change and adjust all the settings of zathura according to your wishes.
|
||||||
|
|
|
@ -2546,7 +2546,6 @@ gboolean cb_draw(GtkWidget* widget, GdkEventExpose* expose, gpointer data)
|
||||||
width = page_height * scale;
|
width = page_height * scale;
|
||||||
height = page_width * scale;
|
height = page_width * scale;
|
||||||
}
|
}
|
||||||
pthread_mutex_unlock(&(Zathura.Lock.rotate_lock));
|
|
||||||
|
|
||||||
int window_x, window_y;
|
int window_x, window_y;
|
||||||
gdk_drawable_get_size(widget->window, &window_x, &window_y);
|
gdk_drawable_get_size(widget->window, &window_x, &window_y);
|
||||||
|
@ -2567,6 +2566,7 @@ gboolean cb_draw(GtkWidget* widget, GdkEventExpose* expose, gpointer data)
|
||||||
cairo_set_source_surface(cairo, Zathura.PDF.surface, offset_x, offset_y);
|
cairo_set_source_surface(cairo, Zathura.PDF.surface, offset_x, offset_y);
|
||||||
cairo_paint(cairo);
|
cairo_paint(cairo);
|
||||||
cairo_destroy(cairo);
|
cairo_destroy(cairo);
|
||||||
|
pthread_mutex_unlock(&(Zathura.Lock.rotate_lock));
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue