Discussion:
[zathura] Set Zoom level explicitly
Bijan Binaee
2016-01-11 19:59:33 UTC
Permalink
Hi
It is nice to have a very lightweight pdf reader like zathura and I love it
in many way.
Recently I want to set zoom level to something like 200 or 250 (an exact
value) and so I did it with typing 200zz in command mode (like goto style
in vim) and it works out of the box.

Now I want to bind a shortcut key to do that so i tried
:map f 200zz

but zathura said '200zz' is not defined
I read the manual and documents but doesn't found any clue about that

so I asked it here. but I don't know if it's a right place to discuss these
sort of things

My Best,
Bijan
Sebastian Ramacher
2016-01-11 20:05:52 UTC
Permalink
Hi Bijan
Post by Bijan Binaee
Hi
It is nice to have a very lightweight pdf reader like zathura and I love it
in many way.
Recently I want to set zoom level to something like 200 or 250 (an exact
value) and so I did it with typing 200zz in command mode (like goto style
in vim) and it works out of the box.
Now I want to bind a shortcut key to do that so i tried
:map f 200zz
:map f feedkeys "200zz" should work.

I tried with :map f zoom specific 200, but for some reason that does not work.
I'll need to look at the code for that.

Cheers
--
Sebastian Ramacher
Bijan Binaee
2016-01-14 06:22:13 UTC
Permalink
Thanks for your support.

your solution works like a charm.
Now I face a new problem. I am wondering if there Is any script available
out there that I can add it to '~/zathura/zathurarc', so every time I open
a new file (the one with no bookmarks) It open with my favorite zoom level.

Regards.
Bijan
Post by Sebastian Ramacher
Hi Bijan
Post by Bijan Binaee
Hi
It is nice to have a very lightweight pdf reader like zathura and I love
it
Post by Bijan Binaee
in many way.
Recently I want to set zoom level to something like 200 or 250 (an exact
value) and so I did it with typing 200zz in command mode (like goto style
in vim) and it works out of the box.
Now I want to bind a shortcut key to do that so i tried
:map f 200zz
:map f feedkeys "200zz" should work.
I tried with :map f zoom specific 200, but for some reason that does not work.
I'll need to look at the code for that.
Cheers
--
Sebastian Ramacher
_______________________________________________
zathura mailing list
https://lists.pwmt.org/mailman/listinfo/zathura
Loading...