BAPCtools icon indicating copy to clipboard operation
BAPCtools copied to clipboard

improve `pdf -w`

Open RagnarGrootKoerkamp opened this issue 2 years ago • 2 comments

When doing bt pdf -w, it should print a message every time compilation is started and finished. (Ideally overwriting the line; maybe using the existing bar class.)

When there are errors, these should be shown as well.

Maybe it's also possible to make zathura auto refresh contents, because currently it doesn't see through the symlink and needs a manual refresh.

RagnarGrootKoerkamp avatar Nov 14 '21 14:11 RagnarGrootKoerkamp

Additionally, bt pdf -w is not yet compatible with --cp, because the LaTeX process never finishes, so the Python code that copies the file is never reached.

All of this could be fixed if the watching is done from Python rather than using LaTeX's built-in watcher.

mpsijm avatar Nov 15 '21 07:11 mpsijm

We should also add a -o/--open flag to open the pdf, or maybe even something more clever like checking if it's already open and only open if not.

RagnarGrootKoerkamp avatar Nov 16 '21 08:11 RagnarGrootKoerkamp