Typst Preview Vscode Save Abandoned

Typst preview extension for VSCode

Project README

Typst Preview VSCode

Preview your Typst files in vscode instantly!

Install this extension from marketplace, open command palette (Ctrl+Shift+P), and type >Typst Preview:.

https://user-images.githubusercontent.com/25521218/230921917-e535340e-a535-44c3-964b-d33bc0b0cc88.mp4

This repo contains:

  • the native part of the extension, in rust
  • a vscode extension, in typescript

How it works?

The extension watches for file changes, and sends the compiled framebuffers to the client. Framebuffers are used here because they are faster than pdf.

  • The server is started, watching file changes, and listening to a websocket port.
  • The webview client connects to the websocket port.
  • The client sends the current visible range whenever the user scrolls/resizes the preview panel.
  • The server sends rendered framebuffers to the client whenever the typst document is updated.

Acknowledgements

  • typst: The rust part of this repo is a thin wrapper around typst.
  • typst-lsp: The CI and the vscode extension are heavily inspired by typst-lsp.
Open Source Agenda is not affiliated with "Typst Preview Vscode" Project. README Source: Enter-tainer/typst-preview-vscode
Stars
75
Open Issues
8
Last Commit
10 months ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating