Tinymist [ˈtaɪni mɪst] is an integrated language service for Typst [taɪpst]. You can also call it "微霭" [wēi ǎi] in Chinese.
It contains:
- an analyzing library for Typst, see tinymist-query.
- a CLI for Typst, see tinymist.
- which provides a language server for Typst, see Language Features.
- which provides a preview server for Typst, see Preview Feature.
- a VSCode extension for Typst, see Tinymist VSCode Extension.
Language service (LSP) features:
-
- The "semantic highlighting" is supplementary to "syntax highlighting".
-
- Also known as "quick fixes" or "refactorings".
-
- Highlight all break points in a loop context.
- (Todo) Highlight all exit points in a function context.
- (Todo) Highlight all captures in a closure context.
- (Todo) Highlight all occurrences of a symbol in a document.
-
- Renders path or link references in the document, such as
image("path.png")
orbibliography(style: "path.csl")
.
- Renders path or link references in the document, such as
-
- Also known as "document outline" or "table of contents" in Typst.
-
- You can collapse code/content blocks and headings.
-
- Right-click on a symbol and select "Go to Definition".
- Or ctrl+click on a symbol.
-
- Right-click on a symbol and select "Go to References" or "Find References".
- Or ctrl+click on a symbol.
-
- Also known as "hovering tooltip".
- Render docs according to tidy style.
-
- Inlay hints are special markers that appear in the editor and provide you with additional information about your code, like the names of the parameters that a called method expects.
-
- View all inlay colorful label for color literals in your document.
- Change the color literal's value by a color picker or its code presentation.
-
- Should give contextual buttons along with code. For example, a button for exporting your document to various formats at the start of the document.
-
- Increasing/Decreasing heading levels.
- Turn equation into "inline", "block" or "multiple-line block" styles.
-
- Enter inside triple-slash comments automatically inserts
///
- Enter in the middle or after a trailing space in
//
inserts//
- Enter inside
//!
doc comments automatically inserts//!
- Enter inside equation markups automatically inserts indents.
- Enter inside triple-slash comments automatically inserts
Extra features:
- Compiles to PDF on save (configurable to as-you-type, or other options).
- Compiles to SVG, PNG, HTML, Markdown, Text, and other formats by commands, vscode tasks, or code lenses.
- Provides code lenses for exporting to PDF/SVG/PNG/etc.
- Provides a status bar item to show the current document's compilation status and words count.
- Editor tools:
- View a list of templates in template gallery. (
tinymist.showTemplateGallery
) - Click a button in template gallery to initialize a new project with a template. (
tinymist.initTemplate
andtinymist.initTemplateInPlace
) - Trace execution in current document (
tinymist.profileCurrentFile
).
- View a list of templates in template gallery. (
Tinymist's versions follow the Semantic Versioning scheme, in format of MAJOR.MINOR.PATCH
. Besides, tinymist follows special rules for the version number:
- If a version is suffixed with
-rcN
(), e.g. 0.11.0-rc1
and0.12.1-rc1
, it means this version is a release candidate. It is used to test publish script and E2E functionalities. These versions will not be published to the marketplace. - If the
PATCH
number is odd, e.g.0.11.1
and0.12.3
, it means this version is a nightly release. The nightly release will use both tinymist and typst at main branch. They will be published as prerelease version to the marketplace. - Otherwise, if the
PATCH
number is even, e.g.0.11.0
and0.12.2
, it means this version is a regular release. The regular release will always use the recent stable version of tinymist and typst.
The release cycle is as follows:
- If there is a typst version update, a new major or minor version will be released intermediately. This means tinymist will always align the minor version with typst.
- If there is at least a bug or feature added this week, a new patch version will be released.
Follow the instructions to enable tinymist in your favorite editor.
Note: if you are not knowing what is a regular/nightly release, please don't follow this section.
Besides published releases specific for each editors, you can also download the latest regular/nightly prebuilts from GitHub and install them manually.
- Regular prebuilts can be found in GitHub Releases.
- Nightly prebuilts can be found in GitHub Actions. For example, if you are seeking a nightly release for the featured PR: build: bump version to 0.11.17-rc1, you could click and go to the action page run for the related commits and download the artifacts.
To install extension file (the file with .vsix
extension) manually, please Ctrl+Shift+X in the editor window and drop the downloaded vsix file into the opened extensions view.
See Online Documentation.
Stable Channel:
Nightly Channel:
The development in typst v0.12.0 has been finished. We'll slow down for a while to catch regressions and bugs by changes. We are also planning to implement the following features in typst v0.13.0 or spare time in weekend:
- Spell checking: There is already a branch but no suitable (default) spell checking library is found.
- Type checking: complete the type checker.
- Static Linter: linting code statically according to feedback of the type checker and succeeding code analysis.
- Periscope renderer: It is disabled since vscode reject to render SVGs containing foreignObjects.
- Inlay hint: It is disabled by default because of performance issues.
- Find references of dictionary fields and named function arguments.
- A reliable way of configuring projects's entry files and files to export across editors. See GitHub Issue 530.
- Improve symbol view's appearance.
- Improve package view.
- Navigate to symbols by clicking on the symbol name in the view.
- Automatically locate the symbol item in the view when viewing local documentation.
- Remember the recently invoked package commands, e.g. "Open Docs of @preview/cetz:0.3.1", "Open directory of @preview/touying:0.5.3".
- Improve label view.
- Group labels.
- Search labels.
- Keep (persist) group preferences.
- Improve Typst Preview.
- Browsing mode: if no main file is specified, the preview will be in browsing mode and use the recently focused file as the main.
- Pin drop-down: Set the file to preview in the drop-down for clients that doesn't support passing arguments to the preview command.
- Render in web worker (another thread) to reduce overhead on the electron's main thread.
If you are interested by any above features, please feel free to send Issues to discuss or PRs to implement to GitHub.
Please read the CONTRIBUTING.md file for contribution guidelines.
Get list of maintainers from MAINTAINERS.typ. Or programmatically by yarn maintainers
Note
You can add extra arguments for specific information. For example, yarn maintainers --input="action=maintainers"
.
- Partially code is inherited from typst-lsp
- The integrating offline handwritten-stroke recognizer is powered by Detypify.
- The integrating preview service is powered by typst-preview.
- The integrating local package management functions are adopted from vscode-typst-sync.