Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually killing pdf viewer prevents vim from opening it again #786

Closed
Unaimend opened this issue Dec 17, 2023 · 3 comments
Closed

Manually killing pdf viewer prevents vim from opening it again #786

Unaimend opened this issue Dec 17, 2023 · 3 comments

Comments

@Unaimend
Copy link

Unaimend commented Dec 17, 2023

Hi,

When I knit a document to pdf it automatically opens my pdf viewer as expected.
Setting let R_openpdf = 1 also results in a correct update of the window when I DONT close it manually. But in the case where I manually close zathura THEN switch back to nvim and re-execute the pdf Zathura will not open again. I attached a video. I hope this helps. Might also be some stupid thing just happening on my system

out.mp4

Sincerely
Thomas

P.S. I tried to look into it but vimscript is killing me

@jalvesaq
Copy link
Owner

What you want should be achieved with R_openpdf=2, but, at least on Wayland, the option no longer works. Please, see: #783 (comment)

jalvesaq added a commit that referenced this issue Dec 17, 2023
Fix Zathura issues on Sway window manager, but not tested on other
systems. See #783 and #786
@jalvesaq
Copy link
Owner

I made some changes. The issue seems to be fixed on Sway. Maybe it is fixed on the X Server too if the return value of wmctrl is different from 0 when it fails to raise a window.

@jalvesaq
Copy link
Owner

I believe the issue is fixed. If not, please, reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants