SublimeText / LaTeXTools

LaTeX plugin for Sublime Text
https://latextools.readthedocs.io/
2k stars 362 forks source link

Support Xreader, refresh support for Evince #1557

Open 5p4k opened 2 years ago

5p4k commented 2 years ago

I use Mint which by default ships with Xreader (and a symlink evince -> xreader), so I was looking to add Xreader support for #1366 . Xreader seems to be just a fork of Evince, so most of the previous script works, but not completely. So I ended up rewriting it completely to support both, also because it was quite old.

I tested this on Mint 20.2, with ST4 build 4126, Evince 3.36.10, XReader 3.0.2. I use Cinnamon as desktop. I tested all combinations of usage parameters for the script (with and without fwd sync, with and without bwd sync, with and without opening the document, with both editors), jump/build/view pdf with both editors, and backward sync from both editors.

I'm looking for feedback especially on the following:

  1. Is is reasonable to replace the current Evince support? It might need a bit more testing than n=1.
  2. Is it ok to transition bring_evince_forward to bring_forward in this way?
  3. Which minimum python version should be supported for the synchronization script? I run python 3.8.10 on my machine, and that is what I coded the script for, but I'm somehow expecting that I will have to go down at least one minor (3.7 seems to be still receiving security support)
  4. I'm looking for at least some test on some other platform also for Xreader if possible?

Let me know what you think :)