Zathura is a file viewer for PDF , DjVu , PostScript , etc. [Comment 1] . Provides a minimalistic and easy to use interface ; control is mainly focused on interaction with the keyboard ( Vim -like command set) [2] , and the mouse is just an additional optional tool [3] .
| Zathura | |
|---|---|
| Written on | |
| Interface | |
| operating system | Linux , FreeBSD , Mac OS X |
| Latest version | |
| License | GNU GPL |
| Site | pwmt.org/projects/zathura/ |
Differs in speed of work and lightness. It is developed and distributed freely and openly using the girara library [comment 2] , based on GTK + . Cross-platform program within Unix-like systems ( Linux , FreeBSD , OS X ).
Interface Description
Zathura has a pseudo-console interface. On the main screen you can see:
- monochrome field in which the document opens,
- a line containing the path to the file (it can be hidden by Ctrl + n ),
- the command line, which is hidden by default in normal mode and appears after entering
:It can also be called by Ctrl + m .
To enter a command, you must go to the appropriate mode by entering : Then you can directly enter the command name or scroll through the possible commands with Tab ↹ . When scrolling to the right there will be descriptions of commands (see. Fig.).
To switch to full screen mode, use the F11 key.
There is a special mode for viewing presentations , switching to which is carried out using the F5 key.
During normal reading, you can turn pages not only one after another, but also spreads . This option is switched by the d key. At the same time, the first page can be viewed both separately (located in the right column), and on a spread with the second page. Switching
:set first-page-column :1 - the first page in the left column,
:set first-page-column :2 - on the right.
Supported Document Formats
It supports various formats using plugins :
| Format | Plugin | Library for rendering |
|---|---|---|
| zathura-pdf-poppler or zathura-pdf-mupdf | poppler or mupdf , respectively | |
| Djvu | zathura-djvu | djvulibre |
| PostScript | zathura-ps | libspectre |
| Comic book archive | zathura-cb | libarchive |
Basic controls
This is an incomplete list of commands (see the man page in the shell [comment 3] ).
Wherever it makes sense, you can put a number in front of the command to repeat the command the corresponding number of times. For example:
10 J - go forward 10 pages,
3 r - turn 3 times clockwise, which is equivalent to once counterclockwise,
etc.
Key Bindings
| Snap | Description |
|---|---|
| J , K | Go to next, previous page |
| h , k , j , l | Scroll left, up, down, right |
| ← , ↑ , ↓ , → | also |
| Ctrl + t , d , u , y | Scroll left, up, down, right half a page |
| t Ctrl + f or space , | Scroll left, up, down, right to the whole page |
gg , G , n G ( n gg ) | To the beginning, to the end, to the nth page of the document |
| a , s | Fit page height, width |
| d | U-Turn View |
/ ? | Text Search |
| n , N | Go to next, previous search result |
| o , o | Open document |
| f | Follow the link |
| F | Show link address |
| r , n r | clockwise rotation, rotation n times |
| Ctrl + r | invert colors (in b / w) |
| R | Reload document |
+ , - , = | Enlarge, reduce, original size |
| q | output |
| Switching modes | |
| F11 | Full screen mode |
| : | Command input mode |
| F5 | Presentation mode |
| Tab ↹ | Switch to the table of contents and back |
| Esc | Normal mode (read) |
| Table of Contents Navigation | |
| k , j | Move one point below |
| l | Expand item |
| L | Expand all |
| h | Collapse |
| H | Collapse all |
| Space , ↵ Enter | Select and open item |
Commands
(entered after :
| Team | Description |
|---|---|
| bmark | Save bookmark |
| bdelete | Delete bookmark |
| blist | Go to bookmark [comment 4] |
| close | Close document |
| exec | Execute external command |
| info | Show document information |
| help | Show help page |
| open o | Open document |
| offset | Page Offset Setting |
| Printing a document | |
| write, write! | Save document, forced dubbing |
| export | Export attachments |
Examples of using commands:
:help
:open /home/username/Documents/document.ps - opened the document document.ps
:info
:infoConfiguration file
The appearance and behavior of Zathura can be changed in the zathurarc configuration file ( ~/.config/zathura/zathurarc ). The behavior of zathura can be specified using the set [comment 5] [6] command. For example, if we want the selection with the mouse to be copied to the clipboard, and not x11 primary selection, add the line set selection-clipboard clipboard [7] [8] to this file. Custom key bindings [6] are configured in the same way. Here you can also set the girara parameters, which determine the appearance of Zathura [9] .
Notes
- ↑ Support for one or another format is provided by connecting plugins
- ↑ Another software product based on the girara library is the minimalist browser Jumanji [4] [5]
- ↑ Copy of the man page in the Ubuntu repository
- ↑ a list of specific bookmarks can be obtained by pressing after
blistTab ↹ (tab) - hint / auto-completion key - ↑ Which, however, can also be entered after the colon
:
- Sources
- ↑ pwmt / zathura
- ↑ Maximum minimum: We create a geek desktop from improvised materials (Russian) (neopr.) ? . The Hacker (July 5, 2011). Date of treatment June 28, 2016.
- ↑ Martin urban.prankster Prankevich. We work with PDF in Linux . The Hacker (May 26, 2015). Date of treatment June 28, 2016.
- ↑ Jumanji . pwmt.org. Date of treatment June 29, 2016.
- ↑ hootiegibbon. Ratpoison Window Manager // PC Linux OS Magazine. - 2011. - No. 11 .
- ↑ 1 2 Zathura Configuration . pwmt.org. Date of treatment June 29, 2016.
- ↑ README . zegervdv / homebrew-zathura . Github Date of treatment June 29, 2016.
- ↑ Copy text not working Issue # 5 zegervdv / homebrew-zathura . Zathura . Github Date of treatment June 29, 2016.
- ↑ Girara General Settings . pwmt.org. Date of treatment June 29, 2016.
Literature
- Mike Sanders HotPicks Zathura // LinuxFormat . - 2013. - January ( No. 01 (165-166) ). - S. 103 .
Links
- pwmt.org/projects/zathura/ - official Zathura website
- Zathura Project on GitHub
- Ubuntu help page repository help page