Yes this is possible, it's just not well documented. Or documented at all for that matter. The only reference I found was in an issue report.
Once a file is opened, you can change the first page location by running :set first-page-column 2 from the command line.
This same line can be added to the rc file at ~/.config/zathura/zathurarc to make it the default....
I posted the same question in the Arch Linux forums and got the following embarrassingly simple answer.
Just hit the "tab" button. You can then navigate the bookmarks with h, j, k, l (l and h drill down and collapse nested bookmarks, respectively).
I recently bumped against a similar problem and, for future reference, here is a workaround:
map <C-o> focus_inputbar ":exec acroread $FILE"
This will map ctrl+o (or whichever your key is) to open the input bar you would normally open with : and input there that text. You can then press Enter to launch the command. This is far from ideal and still ...
There's an undocumented launch option, --mode. The examples given for this were "presentation", and "fullscreen", so just use zathura --mode fullscreen [FILE].
If that gets to be a bother, they don't have a configuration entry for this, for whatever reason, so what I did was add --mode fullscreen to my zathura.desktop file. It's a bit of a bother having to ...
I agree that would be seriously useful, but you can't currently do this.
In the source code, the input-bar exec command mapping is here in config.c. However, the shortcut mappings (starting here) which seem to define what functions can be referred to from the configs don't mention exec. The code isn't structured to easily mix "command" functions and "...
You could use zathurarc to configure the default window size. From man zathurarc:
Defines the window height on startup
· Value type: Integer
· Default value: 600
Defines the window width on startup
· Value type: Integer
· Default value: 800
According to the Zathuras documentation you can use the Girara settings to style Zathura. From this we can derive that the default-bg variable can be used to specify the default background color.
As the customization of Zathura is managed via a config file at ~/.config/zathura/zathurarc, you can simply add the line
set default-bg "#000000"
NOTE: You might ...
You can try to go for a key bind instead of command.
In case you want both commands available within a single combination then put to config ~/.config/zathura/zathurarc file something like:
map <C-l> feedkeys ":set recolor-lightcolor \#002b36<Return>:set recolor-darkcolor \#839496<Return>"
PS. Not sure why you need this, but if you also ...
I've just updated to the latest version (zathura 0.4.4, girara 0.3.3) and I'm now getting:
warning: Unknown option: smooth-scroll
this seems to be because of a change to girara that made smooth scrolling always be turned on
looks like we can just remove this line from our config files now!
I think I have found a workaround to this problem.
My ~/.config/zathura/zathurarc file:
# midnight mode
map <F1> feedkeys ":set recolor-lightcolor \#002b36<Return>"
map <F2> feedkeys ":set recolor-darkcolor \#839496<Return>"
map ! feedkeys "<F1><F2>"
# amber on dark slate
map <F3> feedkeys ":set recolor-lightcolor \...
Basic text selection
According to the Zathura Wikipedia page:
Zathura can search for text and copy text to the primary X selection
This implies the ability to select text as you read is built in, though it likely requires your mouse (you'll be hard-pressed to find a solution for keyboard-controlled selection).
How minimalist do you need? I use Atril, a ...
cat document.pdf | zathura -
Pipes the content of document.pdf to Zathura, which tries to render it.
ls | zathura -
If you have only document.pdf directory and nothing else, that pipes the string document.pdf to Zathura, not its contents, so Zathura complains. Moreover, if you try to write a program and it involves parsing ls, you are most probably doing ...
Add - as a command line argument to zathura:
man -t awk | ps2pdf - - | zathura -
as the man page says:
zathura displays the given files. If a single hyphen-minus (-) is given
as file name, the content will be read from the standard input.
You need to use command substitution in your alias:
alias zathura='zathura -e $( tabbed -c ) & disown'
Note that the alias's replacement text needs to be 'quoted in single quotes' to prevent tabbed -c from being expanded immediately when the alias is defined.
I use "inverse color" (Ctrlr).
Then change the dark black color to gray with :set recolor-lightcolor \#222222.
I have dark background with dark borders after using those commands (defaults to inverted)
set recolor-lightcolor \#222222
set default-bg \#222230
So you might want to try default-bg or light-color ones.
Looking at the source code, it doesn't look like there's anyway to do this. Zathura simply replaces $FILE and % with the file path before executing the command.
So you will have to use a workaround anyway. Maybe something like:
exec sh -c 'xdg-open $(dirname $FILE)'
exec xterm -e 'ranger $(dirname $FILE)'
More quoting is really needed here, but I ...
A bit late to the party, but using xdotool to do the ctrl click did the job for me. I wrote this short bash script (also found here zathura_backward_search.sh):
eval $(xdotool getwindowgeometry --shell $ACTIVEWINDOW)
HALF_WIDTH="$(($WIDTH / 2 + 10))"
HALF_HEIGHT="$(($HEIGHT / 2))"
xdotool mousemove --...
There are actually two clipboards. The primary clipboard is used by
terminal and some applications and the other clipboard is used by
most GUI applications like MS style copy/paste.
Zathura, by default, copies the selected contents to the Primary
clipboard that can be accessed by middle mouse button.
This behaviour can be changed by adding
Create the file /usr/local/bin/zathura.sh, and fill it with this content :
killall zathura 2>/dev/null
And make it executable with this command : sudo chmod +x /usr/local/bin/zathura.sh.
Now go to your atom-latex settings in your atom editor (edit -> preferences -> packages -> latex -> settings) and change the value of ...