Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

Add support for cross-platform and Windows PDF viewers #48

Closed
wants to merge 4 commits into from
Closed

Add support for cross-platform and Windows PDF viewers #48

wants to merge 4 commits into from

Conversation

nscaife
Copy link
Contributor

@nscaife nscaife commented Jan 22, 2015

These commits add support for (and dependency on) the pdf-view module to allow previewing directly in Atom. If no other opener is found/configured, the built-in preview is used as a fallback.

I've also added basic support for opening SumatraPDF on Windows. Unfortunately Acrobat puts a write lock on PDF files, preventing the LaTeX build from succeeding while the PDF is open. Sumatra will auto-refresh the PDF view on update.

@nscaife
Copy link
Contributor Author

nscaife commented Jan 22, 2015

Originally, I added pdf-view to dependencies, but it looks there's no support for adding dependencies onto other Atom packages. Instead, it now detects pdf-view and will use it if available. Otherwise, there's a friendly error suggesting to install the package.

@thomasjo
Copy link
Owner

This looks extremely promising. Merging locally and testing it right now.

thomasjo added a commit that referenced this pull request Jan 28, 2015
@thomasjo
Copy link
Owner

Merged! Thanks for helping out — finally we a better Windows story ✨

@thomasjo thomasjo closed this Jan 28, 2015
@nscaife nscaife deleted the pdfview branch January 28, 2015 13:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants