thomasjo / atom-latex

Compile LaTeX or knitr documents from within Atom
https://atom.io/packages/latex
MIT License
223 stars 42 forks source link

Provide auto toggle option #507

Closed Aerijo closed 4 years ago

Aerijo commented 5 years ago

This let's the dock open and close itself, based on if it's got messages or not.

I was considering making the control finer, by allowing auto close and auto open to be separately configured (could be rolled into a single enum choice). Honestly, it still sounds good to me.

The open / close logic is based on the toggle logic.

Also fixes #506

Aerijo commented 5 years ago

Actually, this behaves poorly with the auto focus options of the dock. When it opens, it will steal focus, which is especially bad with "compile on save" turned on.

Auto closing should still work fine though.