jarun / nnn

n³ The unorthodox terminal file manager
BSD 2-Clause "Simplified" License
19.09k stars 760 forks source link

preview-tabbed - zathura not focusing #1793

Closed MaMiMa81 closed 3 months ago

MaMiMa81 commented 9 months ago

Using preview-tabbed works as expected, as it always did, apart from zathura. The preview window is launched with zathura on the workspace in the WM and the associated file changes with navigation through files in the file manager pane however the file is not displayed with zathura until I manually focus the plugin window i.e. with the curser or even by manually invoking:

    xdotool windowactivate "$XID"

This has recently started happening and all other file-types are still displayed as before with their various opening applications as navigation is traversed through the file manager without issue.

Both zathura and my WM, spectrwm, have received updates recently but it appears just specific to the plugin interaction with zathura. I'm using the latest nnn version and the most recent set of plugins.

EDIT:

Indeed it is due to the zathura upgrade that preview_tabbed pdf functionality has ceased working correctly. I earlier downgraded zathura from 0.5.4 to 0.5.2 but I failed to downgraded the dependency girara from 0.4.1 to 0.4.0 and conscequently I still encountered the issue described above but after downgrading both zathura and girara the correct functionality of preview_tabbed is restored.

It appears that the issue is with the latest upgrade of zathura (with girara of course) and tabbed:

https://git.pwmt.org/pwmt/zathura/-/issues/388

        running zathura with tabbed causes default binds to break

Apologies for not being more thorough initially but this may highlight this issue if anyone experiences it. I shall leave this issue open until the developer decides to close it if appropriate.

jarun commented 8 months ago

@N-R-K @luukvbaal can you please have a look?

N-R-K commented 8 months ago

I'm not on latest zathura so can't reproduce.

https://git.pwmt.org/pwmt/zathura/-/issues/388 https://github.com/pwmt/zathura/issues/432

Looks like it's a zathura issue and not a problem with the preview-tabbed script. If there's a known workaround then feel free to share.

jarun commented 3 months ago

Closing since there's no response.

MaMiMa81 commented 1 month ago

I'm not on latest zathura so can't reproduce.

https://git.pwmt.org/pwmt/zathura/-/issues/388

Looks like it's a zathura issue and not a problem with the preview-tabbed script. If there's a known workaround then feel free to share.

The workaround currently for me is I am still using zathura v. 0.5.2 with girara v. 0.4.0 & zathura-pdf-poppler v. 0.3.1 - not really satisfactory as new versions of zathura, girara & zathura-pdf-poppler are released.