You are not logged in.

#301 2010-06-18 15:01:18

quigybo
Member
Registered: 2009-01-15
Posts: 223

Re: zathura - a PDF viewer

Hey. I tried ebcebb03be and the adjust_open and zoom commands work well. Thanks.

However from 71e3d2efed on none of my keys work. No matter what key I press, it is unrecognised and goes directly into the status bar and not the input bar. If I revert the changes you made to cb_view_kb_pressed it works fine again. Is anybody else having the same issue?

The special keys work well in 71e3d2efed (with the changes to cb_view_kb_pressed reverted). Good stuff.

On an unrelated and rather low priority note, when typing a command in the input bar C-w always deletes the last word on the line, not the word next to the cursor.

Offline

#302 2010-06-18 19:43:53

neldoreth
Member
From: AT
Registered: 2009-02-01
Posts: 212

Re: zathura - a PDF viewer

Hello,

quigybo wrote:

However from 71e3d2efed on none of my keys work. No matter what key I press, it is unrecognised and goes directly into the status bar and not the input bar. If I revert the changes you made to cb_view_kb_pressed it works fine again. Is anybody else having the same issue?

Hm, it works fine here - I changed the behaviour of cb_view_kb_pressed, because now the order of the shortcuts should not matter.

Best regards


pwmt.org : programs with movie titles

Offline

#303 2010-06-18 21:39:49

q0tsa
Member
Registered: 2009-07-20
Posts: 39

Re: zathura - a PDF viewer

I just tried out zathura and I love it. As a vim user I feel right at home. Thanks for your great work!

I also added hjkl-navigation and some other keys in fullscreen mode through config.h. Out of curiousity, why are most of the keys that work in normal mode not mapped in fullscreen mode by default?

Offline

#304 2010-06-19 08:03:10

neldoreth
Member
From: AT
Registered: 2009-02-01
Posts: 212

Re: zathura - a PDF viewer

Hello,

quigybo wrote:

However from 71e3d2efed on none of my keys work. No matter what key I press, it is unrecognised and goes directly into the status bar and not the input bar. If I revert the changes you made to cb_view_kb_pressed it works fine again. Is anybody else having the same issue?

Please checkout the latest git version. I found a >bug< concerning the key bindings. For an example when you specified the key to GDK_A you also had to specify the modifier to GDK_SHIFT_MASK. This should be fixed now.

Best regards


pwmt.org : programs with movie titles

Offline

#305 2010-06-19 09:07:43

quigybo
Member
Registered: 2009-01-15
Posts: 223

Re: zathura - a PDF viewer

I tried 7167b2e501 and it is a bit better but still not working quite right. Some commands do work, while others do not. Some of the ones that do are j, J, k, K, r, R, a, s, :, /, while others like C-q, F5, Esc, Tab do not (in normal mode). Any ideas?

Offline

#306 2010-06-19 09:56:18

neldoreth
Member
From: AT
Registered: 2009-02-01
Posts: 212

Re: zathura - a PDF viewer

Hello,

quigybo wrote:

I tried 7167b2e501 and it is a bit better but still not working quite right. Some commands do work, while others do not. Some of the ones that do are j, J, k, K, r, R, a, s, :, /, while others like C-q, F5, Esc, Tab do not (in normal mode). Any ideas?

Like I said, it works just fine here. Maybe you can join the irc channel #pwmt at irc.oftc.net later today.

Best regards


pwmt.org : programs with movie titles

Offline

#307 2010-06-19 14:44:55

quigybo
Member
Registered: 2009-01-15
Posts: 223

Re: zathura - a PDF viewer

neldoreth wrote:
quigybo wrote:

I tried 7167b2e501 and it is a bit better but still not working quite right. Some commands do work, while others do not. Some of the ones that do are j, J, k, K, r, R, a, s, :, /, while others like C-q, F5, Esc, Tab do not (in normal mode). Any ideas?

Like I said, it works just fine here. Maybe you can join the irc channel #pwmt at irc.oftc.net later today.

Just to make it public in case anybody else was having my issue, we have resolved it with commit 0c04bc65ea.

Offline

#308 2010-06-21 19:53:34

lordmetroid
Member
Registered: 2009-09-27
Posts: 75

Re: zathura - a PDF viewer

Trying to get a little bit of order on the config files of various software, I think it is better if the configuration files are located in ~/.config/zathura/

I am also wonder if it is possible to adjust the zoom with C-mousewheel and if it is possible to have a continious rendering instead of page wise and a mode for two pages side by side rendered?

Offline

#309 2010-06-21 20:13:24

neldoreth
Member
From: AT
Registered: 2009-02-01
Posts: 212

Re: zathura - a PDF viewer

Hello,

lordmetroid wrote:

Trying to get a little bit of order on the config files of various software, I think it is better if the configuration files are located in ~/.config/zathura/

Yes.

lordmetroid wrote:

I am also wonder if it is possible to adjust the zoom with C-mousewheel and if it is possible to have a continious rendering instead of page wise and a mode for two pages side by side rendered?

Maybe some day.

Best regards


pwmt.org : programs with movie titles

Offline

#310 2010-06-21 20:14:26

neldoreth
Member
From: AT
Registered: 2009-02-01
Posts: 212

Re: zathura - a PDF viewer

Hello,

I just wanted to mention that zathura 0.0.7 is out:

    * Change window title to filename
    * Fixation of the URI command
    * Updated the behaviour of sc_scroll
    * Half/Full-page scrolling
    * Check document health in sc_reload
    * tabbed support
    * Define look with the set function
    * Implemented map function
    * zathurarc file
    * Prevent buffer overflow in realpath
    * Strip executeable
    * Key evaluation when buffer is not empty
    * Manpage update

Best regards


pwmt.org : programs with movie titles

Offline

#311 2010-06-21 21:39:59

aeosynth
Member
From: California
Registered: 2010-02-06
Posts: 115
Website

Re: zathura - a PDF viewer

Hi,

Neither `set show_inputbar` nor `set show_statusbar` seem to work. Also, the `set` commands don't show any feedback - `set asdf` does nothing silently. Seeing a red error message would help me know I was doing something wrong.

I said this in irc, but I'd like the inputbar and statusbar merged so I wouldn't have to hide one.

When in the inputbar, backspacing over the first character should unfocus the bar, like in vim.

Also a couple readline commands would be nice (^H, ^F, ^B, ^C). ^C clears the buffer, but it should also clear and unfocus the inputbar.

Thanks.

Offline

#312 2010-06-21 21:59:27

neldoreth
Member
From: AT
Registered: 2009-02-01
Posts: 212

Re: zathura - a PDF viewer

Hello,

aeosynth wrote:

Neither `set show_inputbar` nor `set show_statusbar` seem to work. Also, the `set` commands don't show any feedback - `set asdf` does nothing silently. Seeing a red error message would help me know I was doing something wrong.

The manpage says "set    Set an option (set <id> <value>)" and "set show_inputbar 0" or "set show_statusbar 0" work just fine.

aeosynth wrote:

I said this in irc, but I'd like the inputbar and statusbar merged so I wouldn't have to hide one.

If you hide the inputbar it just appears when its necessary.

Also a couple readline commands would be nice (^H, ^F, ^B, ^C). ^C clears the buffer, but it should also clear and unfocus the inputbar.

When >view< is focused, ^c just aborts everything (clears buffer, move back to normal mode). This has nothing to do with the inputbar.

Best regards


pwmt.org : programs with movie titles

Offline

#313 2010-06-21 22:45:13

aeosynth
Member
From: California
Registered: 2010-02-06
Posts: 115
Website

Re: zathura - a PDF viewer

Hm, it didn't work when I installed from git manually, but with the aur package it works just fine.

The boolean set commands actually work fine without specifying <value>. And the manpage doesn't say what the allowed values are, so I was trying true / false with various capitalizations.

neldoreth wrote:

If you hide the inputbar it just appears when its necessary.

Yes, but I'd prefer reusing the statusbar so the page doesn't jump.

neldoreth wrote:

When >view< is focused, ^c just aborts everything (clears buffer, move back to normal mode). This has nothing to do with the inputbar.

What I meant is that when I'm typing commands in the inputbar, ^c doesn't abort anything. When I'm typing buffered commands that show up in the statusbar, ^c aborts correctly; I'd like this functionality for the inputbar as well.

Thanks.

Offline

#314 2010-06-21 23:34:58

aeosynth
Member
From: California
Registered: 2010-02-06
Posts: 115
Website

Re: zathura - a PDF viewer

Another thing, when typing buffered commands, zathura should check to see if any commands can possibly be matched, and if not, stop buffering. If a command doesn't start with [gGz0-9], and the user hasn't set up any buffered commands in his zathurarc (which isn't even possible currently), it shouldn't be buffered.

Offline

#315 2010-06-22 00:13:29

neldoreth
Member
From: AT
Registered: 2009-02-01
Posts: 212

Re: zathura - a PDF viewer

Hello,

aeosynth wrote:

What I meant is that when I'm typing commands in the inputbar, ^c doesn't abort anything. When I'm typing buffered commands that show up in the statusbar, ^c aborts correctly; I'd like this functionality for the inputbar as well.

It is in the git repository now (you could just added the shortcut that existed for Escape for ^c too) as long as some other string/cursor manipulations.

aeosynth wrote:

Another thing, when typing buffered commands, zathura should check to see if any commands can possibly be matched, and if not, stop buffering. If a command doesn't start with [gGz0-9], and the user hasn't set up any buffered commands in his zathurarc (which isn't even possible currently), it shouldn't be buffered.

If you find a trivial solution for this let me know.

Best regards


pwmt.org : programs with movie titles

Offline

#316 2010-06-22 11:29:09

Möller
Member
Registered: 2009-11-19
Posts: 16

Re: zathura - a PDF viewer

Is it possible to set a specific zoompercentage in the zathurarc-file? Looked through this thread but haven't found anything.

Offline

#317 2010-06-22 13:45:22

neldoreth
Member
From: AT
Registered: 2009-02-01
Posts: 212

Re: zathura - a PDF viewer

Hello,

Möller wrote:

Is it possible to set a specific zoompercentage in the zathurarc-file? Looked through this thread but haven't found anything.

Just add the following line into the config.h under settings:

{"scale",                  &(Zathura.PDF.scale),               'i',   TRUE,    FALSE,   "Zoom level"},

I can't see any sense of specifying the default zoom level, though there is adjust_open.

Best regards


pwmt.org : programs with movie titles

Offline

#318 2010-06-23 18:52:57

cleanrock
Member
Registered: 2008-11-17
Posts: 109

Re: zathura - a PDF viewer

Its great that zathura is minimalistic and all but i really think it needs some speeding up to be usable.
Changing pages takes a long time compared to e.g. evince, i think some kind of caching is needed.

Perhaps i missed some option to make zathura quicker, if so, please enlighten me.

Offline

#319 2010-06-23 19:12:20

neldoreth
Member
From: AT
Registered: 2009-02-01
Posts: 212

Re: zathura - a PDF viewer

Hello,

cleanrock wrote:

Its great that zathura is minimalistic and all but i really think it needs some speeding up to be usable. Changing pages takes a long time compared to e.g. evince, i think some kind of caching is needed..

It only needs very long (at least for me on my eee pc) for big PDFs with large images, but this occurs on evince too (apart from that it uses a continious view and so preloads some pages), just starting scrolling very fast. But I guess I will add the functionality to preload the previous and next page in the background (I once started to do that for alle pages, but the memory consumption is very high.

Best regards


pwmt.org : programs with movie titles

Offline

#320 2010-06-24 19:41:03

spaceone
Member
Registered: 2010-06-24
Posts: 8

Re: zathura - a PDF viewer

I wanted to assign plus (KP_Add) and minus (KP_Subtract) to ZOOM_IN and ZOOM_OUT instead of zI and Z0 in buffer commands, so that it looks like that:
{"^KP_Add$",         bcmd_zoom,       { ZOOM_IN } },
{"^KP_Subtract$",         bcmd_zoom,       { ZOOM_OUT } },

I hope that I didn't do something wrong but when compiled those two keys are not responding . Is it possible to assign those two keys to zoom functions ?

This is awsome pdf viewer. Amongst the fastest.

Regards
Andrej

Last edited by spaceone (2010-06-24 19:41:47)

Offline

#321 2010-06-24 19:50:35

tzervo
Member
From: Athens
Registered: 2009-04-03
Posts: 86

Re: zathura - a PDF viewer

With the new versions, it is possible to put keybindings in a rc file. Check here, there are examples as well.

Offline

#322 2010-06-24 20:45:16

spaceone
Member
Registered: 2010-06-24
Posts: 8

Re: zathura - a PDF viewer

Thanks for advice. I emerged version 0.0.7.

I zathurarc there is:
map + zoom in
map - zoom out

Key for + in my keyboard layout is one left from backspace and minus is one left from RShit and they're working ok in zathura.
Plus and minus on my keypad aren't active.

They are also inactive when I use these:
map <KP_Add> zoom in
map <KP_Subtract> zoom out

KP_Add and KP_Subtract are showing in xev, when pressing keypad's + and -.

So, has anybody working config with keypad plus and minus ? I don't want to complicate but for me it is more convenient to use keypad to zoom in and out.

Offline

#323 2010-06-24 21:03:32

tzervo
Member
From: Athens
Registered: 2009-04-03
Posts: 86

Re: zathura - a PDF viewer

Maybe by putting KP_Add instead of <KP_Add> in the map line? (just a thought, unfortunately I don't have keypad right know, not even though a function key, to test it...

Offline

#324 2010-06-24 21:40:00

neldoreth
Member
From: AT
Registered: 2009-02-01
Posts: 212

Re: zathura - a PDF viewer

Hello,

tzervo wrote:

Maybe by putting KP_Add instead of <KP_Add> in the map line? (just a thought, unfortunately I don't have keypad right know, not even though a function key, to test it...

No, the problem lies elsewhere: You would have to define those special keys in the config.h file in the gdk_keys array, where you map key words to these specific keys.

Best regards


pwmt.org : programs with movie titles

Offline

#325 2010-06-25 13:13:33

lordmetroid
Member
Registered: 2009-09-27
Posts: 75

Re: zathura - a PDF viewer

I read on reddit about zathura not working with a pdf containing Japanese so I had to try it myself and hence executed:

curl -o /tmp/data-glass.pdf http://www.shimadzu.co.jp/hmd/data-glass.pdf && zathura /tmp/data-glass.pdf

Turns out I have no problem rendering the pdf however when loaded zathura is very slow. I tried it with xpdf as well and while it is slow in xpdf as well it isn't as slow and xpdf do react to input without feeling sluggish at all.

Last edited by lordmetroid (2010-06-25 13:17:04)

Offline

Board footer

Powered by FluxBB