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

inotify support #12

Closed
mmonaco opened this issue Nov 17, 2013 · 3 comments
Closed

inotify support #12

mmonaco opened this issue Nov 17, 2013 · 3 comments
Assignees

Comments

@mmonaco
Copy link

mmonaco commented Nov 17, 2013

I thought of another one =)

It would be nice if everything is re-rendered when the underlying PDF changes. I use this with evince a lot so I can leave the PDF open and just run make to update it.

This of course could be optional, either on or off by default.

@ghost ghost assigned dannyedel Nov 23, 2013
@dannyedel
Copy link
Owner

This seems like a great idea, provided you have enough screens to edit the PDF aswell as view it : ) But with the -u0 (maybe with -f) combination it should play nicely with a standard (La)TeX editor+make system on the primary screen.
However, I first need to program a re-render function, that requires some thinking on its own before going auto-reload. I'll program that in its own ticket and then get back to this one.

@dannyedel
Copy link
Owner

inotify (using QFileSystemWatcher) has been implemented in c3dafc3. It should be smart enough to not use an obviously broken file (created while pdflatex is writing its output), but instead wait until Poppler can open the file. If possible please re-test.

dannyedel referenced this issue Jul 12, 2014
If the file was removed from disk and QFileSystemWatcher's list and
completely re-written before added again, the application would not see
a change in file contents and therefore not reload.

This commit "should" fix that.
@dannyedel
Copy link
Owner

In my personal testing, inotify works fine now.

If this is buggy at all, please re-open, but for now I consider it fixed.

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

No branches or pull requests

2 participants