Enter-tainer / typst-preview

[DEPRECATED] Use tinymist instead
https://Enter-tainer.github.io/typst-preview/
MIT License
447 stars 21 forks source link

Use typst-ws as a stantalone binary #71

Closed Enter-tainer closed 1 year ago

Enter-tainer commented 1 year ago

Something like https://github.com/ItsEthra/typst-live, but with better performance.

This could be advantageous for those who use other editors. Unfortunately, cross jumping will not be supported.

Myriad-Dreamin commented 1 year ago

Ideally you can still write a temp file (or pass a cli option to specify path to service lock file) to registry/lock the websocket's data plane port. For example, for a file "path/to/file.typ", creating a file at "path/to/.file.typst-preview.json" containing exact following bytes content:

{"version": "v1beta","data-plane-addr": "ws://localhost:26666"}

This would help those third-party editor plugins discover a preview service.