This repository has been archived by the owner on Nov 7, 2024. It is now read-only.
v0.11.6
Change Log
All notable changes to the "typst-preview" extension will be documented in this file.
Check Keep a Changelog for recommendations on how to structure this file.
v0.11.6 - [2024-05-19]
- Add extension icon designed by Zoknatwrd
v0.11.5 - [2024-05-19]
- Bump to typst v0.11.1
- Show activity bar icon only when current file is a typst file
v0.11.4 - [2024-04-09]
- Fix version in nix build
- Fix desync in firefox
v0.11.3 - [2024-03-25]
- Bump to typst.ts 0.5.0-rc1
v0.11.2 - [2024-03-21]
- Fix:
v0.11.1 - [2024-03-18]
- Fix:
- remove windows-ia32. It is not supported by vscode anymore.
v0.11.0 - [2024-03-18]
- Features:
- Upgrade to typst v0.11.0
- typst-preview is available on crate.io now. You can install it by running
cargo install typst-preview
. You can also use it as a library in your project by addingtypst-preview
to yourCargo.toml
.
v0.10.10 - [2024-03-13]
- Features:
- Upgrade to typst v0.11.0-rc1(master, 48820fe69b8061bd949847afc343bf160d05c924)
- Bug fixes:
- Fix gradient color being rendered incorrectly
v0.10.9 - [2024-03-10]
- Features:
- Upgrade to typst v0.11.0-rc1
- Bug fixes:
- May fix a bug when typst preview cannot launch on some windows machines
- Fix jumping view while zooming
- Fix cannot use relative path in
typst-preview.fontPaths
v0.11.0-rc1 - [2024-03-10]
- Features:
- Upgrade to typst v0.11.0-rc1
- Bug fixes:
- May fix a bug when typst preview cannot launch on some windows machines
- Fix jumping view while zooming
- Fix cannot use relative path in
typst-preview.fontPaths
v0.10.8 - [2024-02-19]
- Features:
- Add favicon when opening the preview in browser (#239)
- Add drag to scroll. You can now drag the preview panel to scroll.
- Bug fixes:
- fix sensitive scale on touchpad (#244)
- The vscode extension will check the server version before starting.
- Misc:
- Add async tracing and add a new command
typst-preview.showAwaitTree
to pop a message and copy the async tree to clipboard. This is useful for debugging. - Add split debug symbol for the server.
- Add async tracing and add a new command
v0.10.7 - [2024-01-25]
- Features:
- Jump to source is more accurate now.
- Add a config to invert color in preview panel. See
typst-preview.invertColors
. - Allow config scroll sync mode. See
typst-preview.scrollSync
- (Experimental) Improve cursor indicator.
v0.10.6 - [2024-01-17]
- Bug fixes:
- fix a bug which cause the preview panel no longer updates as you type
v0.10.5 - [2024-01-14]
-
Bug fixes:
- fix a bug that fails to incrementally rendering pages with transformed content
- fix #141: glyph data desync problem, corrupting state of webview typically after your editor hibernating and coming back.
-
Features:
- performance is now improved even further. We now use a more efficient way to render the document.
v0.10.4 - [2024-01-05]
-
Bug fixes:
- Fix open in browser. It's broken in v0.10.3.
-
Features:
- Improve incremental rendering performance.
v0.10.3 - [2024-01-01]
-
Bug fixes:
- Thanks to new rendering technique, scrolling in no longer laggy on long document.
-
Features:
- We now automatically declare the previewing file as entrypoint when
typst-preview.pinPreviewFile
is set totrue
. This is like the eye icon in webapp. This should improve diagnostic messages for typst lsp. You can enable this by settingtypst-preview.pinPreviewFile
totrue
.
- We now automatically declare the previewing file as entrypoint when
v0.10.2 - [2023-12-18]
- Bug fixes:
- fix scrollbar hiding
v0.10.1 - [2023-12-17]
-
Features:
- Improve thumbnail side panel and outline. Now it is clickable and you can jump to the corresponding page.
-
Bug fixes:
- Improve performance for outline generation.
v0.10.0 - [2023-12-05]
- Features:
- Bump to typst v0.10.0
v0.9.2 - [2023-11-23]
-
Features:
- You can now enable a preview panel in the sidebar. See
typst-preview.showInActivityBar
. - A new keybinding is added. You can trigger preview by using
Ctrl
/Cmd
+k
v
now.
- You can now enable a preview panel in the sidebar. See
-
Bug fix:
- Scroll to cursor on 2-column documents is now improved.
v0.9.1 - [2023-11-17]
-
Features:
- #160: Slides mode is available now! You can enable use
typst-preview.preview-slide
command. - Allow adjust the status bar item
- #160: Slides mode is available now! You can enable use
-
Bug fixes:
v0.9.0 - [2023-10-31]
-
Features:
- Update to typst v0.9.0
- Add a status indicator in status bar. When compile fails, it becomes red. Clicking on it will show the error message.
-
Bug fixes:
v0.8.3 - [2023-10-28]
-
Bug fixes:
-
Features:
- #157 Add a rough indicator for the current cursor position in the preview panel. You may enable this in configuration.
v0.8.2 - [2023-10-20]
-
Features:
- #142 The scroll position of the preview panel is now preserved when you switch between tabs.
- #133 We now provide a button to show log when the server crashes. This should make debugging easier. You may also use the command
typst-preview.showLog
to show the log. - #129 A
--version
flag is now provided in the cli
-
Bug fixes:
v0.8.1 - [2023-09-24]
- Bug fixes:
- #121: Disable darkreader for preview panel. This should fix the problem where the preview panel is invisible when darkreader is installed in the browser.
- #123: Fix a VDOM bug which may cause color/clip-path desync.
- #124: Fix a race condition which may cause the webview process messages out of order, resulting in blank screen.
- #125: Resizing the preview panel is not that laggy now.
- Features:
- #120: We now show page breaks and center pages horizontally. By default we will choose the
vscode-sideBar-background
color as the page break color. If it is not distinguishable from white, we will use rgb(82, 86, 89) instead.
- #120: We now show page breaks and center pages horizontally. By default we will choose the
v0.8.0 - [2023-09-17]
- Upgrade to typst v0.8.0
- Fix #111: Previously stroke related attributes are not rendered correctly. This is now fixed.
- Fix #105: The compiler will panic randomly. This is now fixed.
- Upstream bug fixes: https://github.com/Myriad-Dreamin/typst.ts/releases/tag/v0.4.0-rc3
v0.7.5 - [2023-09-01]
- Fix #107: now VSCode variables like
${workspaceFolder}
can be used intypst-preview.fontPaths
. - Fix cannot open multiple preview tabs at the same time.
v0.7.4 - [2023-08-29]
- Typst Preview Book is now available at https://enter-tainer.github.io/typst-preview/ ! You can find the documentation of Typst Preview there.
- Improved standalone usage: Use
typst-preview
without VSCode now becomes easier. All you need istypst-preview --partial-rendering cool-doc.typ
. Take a look at https://enter-tainer.github.io/typst-preview/standalone.html - Upgrade to typst.ts 0.4.0-rc2. This fixes a subtle incremental parsing bug.
- Partial rendering is now enabled by default. This should improve performance on long document. You can disable it by setting
typst-preview.partialRendering
tofalse
.
v0.7.3 - [2023-08-20]
- Bugfix: fix a subtle rendering issue, typst.ts#306.
v0.7.2 - [2023-08-20]
- Bug fixes:
- #79: We now put typst compiler and renderer in a dedicate thread. Therefore we should get more stable performance.
- #78: Currently only the latest compile/render request is processed. This should fix the problem where the preview request will queue up when you type too fast and the doc takes a lot of time to compile.
- #81: We now use a more robust way to detect the whether to kill stale server process. This should fix the problem where the when preview tab will become blank when it becomes inactive for a while.
- #87: Add enum description for
typst-preview.scrollSync
. Previously the description is missing.
v0.7.1 - [2023-08-16]
- Bug fixes:
- Misc: We downgrade the ci image for Linux to Ubuntu 20.04. This should fix the problem where the extension cannot be installed on some old Linux distros.
v0.7.0 - [2023-08-09]
- Upgrade to typst v0.7.0
- Bug fixes
v0.6.4 - [2023-08-06]
- Rename to Typst Preview.
- Add page level partial rendering. This should improve performance on long document. This is an experimental feature and is disabled by default. You can enable it by setting
typst-preview.partialRendering
totrue
. - The binary
typst-preview
now can be used as a standalone typst server. You can use it to preview your document in browser. For example:typst-preview ./assets/demo/main.typ --open-in-browser --partial-rendering
- Fix #70: now you can launch many preview instances at the same time.
v0.6.3 - [2023-07-29]
- Fix #13, #63: Now ctrl+wheel zoom should zoom the content to the cursor position. And when the cursor is not within the document, the zoom sill works.
v0.6.2 - [2023-07-25]
- Fix #60 and #24. Now we watch dirty files in memory therefore no shadow file is needed. Due to the removal of disk read/write, this should also improve performance and latency.
- Preview on type is now enabled by default for new users. Existing users will not be affected.
v0.6.1 - [2023-07-14]
- Fix empty file preview. Previously, if you start with an empty file and type something, the preview will not be updated. This is now fixed.
v0.6.0 - [2023-07-06]
- Upgrade to typst v0.6.0
- Bug fixes:
- Enhancement
- #54: Only scroll the preview panel when the event is triggered by mouse
v0.5.1 - [2023-06-30]
- Performance improvement(#14): We now use typst.ts. We utilize a virtual DOM approach to diff and render the document. This is a significant enhancement of previewing document in
onType
mode in terms of resource savings and response time for changes. - Cross jump between code and preview (#36): We implement SyncTeX-like feature for typst-preview. You can now click on the preview panel to jump to the corresponding code location, and vice versa. This feature is still experimental and may not work well in some cases. Please report any issues you encounter.
- Sync preview position with cursor: We now automatically scroll the preview panel to the corresponding position of the cursor. This feature is controlled by
typst-preview.scrollSync
- Open preview in separate window(#39): You can type
typst-preview.browser
in command palette to open the preview page in a separate browser. - Links in preview panel: You can now click on links in the preview panel to open them in browser. The cross reference links are also clickable.
- Text selection in preview panel: You can now select text in the preview panel.
v0.5.0 - [2023-06-10]
- Upgrade to typst v0.5.0
v0.4.1 - [2023-06-07]
- Makes the WebSocket connection retry itself when it is closed, with a delay of 1 second.
v0.4.0 - [2023-06-07]
- Upgrade to typst v0.4.0
v0.3.3 - [2023-05-11]
- Fix nix-ld compatibility by inheriting env vars(#33)
v0.3.1 - [2023-05-04]
- Publish to OpenVSX
- allow configuring font paths
v0.3.0 - [2023-04-26]
- Upgrade typst to v0.3.0
- Fix panic when pages are removed
v0.2.4 - [2023-04-21]
- Automatically choose a free port to listen. This should fix the problem where you can't preview multiple files at the same time.
- Server will exit right after client disconnects, preventing resource leak.
v0.2.3 - [2023-04-20]
- Performance Improvement: only update pages when they are visible. This should improve performance when you have a lot of pages.
v0.2.2 - [2023-04-16]
- Fix server process not killed on exit(maybe)
- Add config for OnSave/OnType
- Add output channel for logging
v0.2.1 - [2023-04-16]
- Bundle typst-ws within vsix. You no longer need to install typst-ws
v0.1.7 - [2023-04-10]
- Preview on type
- Add config entry for
typst-ws
path
v0.1.6 - [2023-04-09]
Add preview button
v0.1.0 - [2023-04-09]
Initial release