Tinymist [ˈtaɪni mɪst] is an integrated language service for Typst [taɪpst].
Find a file
Myriad-Dreamin acd22b71a5
feat: convert introduction.typ to README.md (#479)
* dev: supports some functions for README

* feat: convert introduction.typ to README.md
2024-07-30 17:12:20 +08:00
.github test: increase the difficulty of diagnostic testing (#457) 2024-07-25 20:04:03 +08:00
.vscode dev: reduce dependencies a bit (#400) 2024-07-11 15:35:08 +08:00
contrib feat: add error framework and parse sys arguments for typlite (#478) 2024-07-30 16:49:04 +08:00
crates feat: convert introduction.typ to README.md (#479) 2024-07-30 17:12:20 +08:00
docs feat: convert introduction.typ to README.md (#479) 2024-07-30 17:12:20 +08:00
editors fix: scroll command doesn't process task correctly (#477) 2024-07-29 23:34:53 +08:00
scripts feat: convert introduction.typ to README.md (#479) 2024-07-30 17:12:20 +08:00
syntaxes/textmate docs: improve and add contribution guide for syntaxes (#471) 2024-07-27 23:04:52 +08:00
tests feat: support single-task preview commands (#368) 2024-07-06 13:27:17 +08:00
tools feat(invert-colors): add normal-image option (#464) 2024-07-28 17:49:02 +08:00
typ/templates feat: convert introduction.typ to README.md (#479) 2024-07-30 17:12:20 +08:00
.gitignore docs: add base documentation (#344) 2024-06-26 16:33:33 +08:00
.prettierignore dev: init 2024-03-07 05:29:31 +08:00
Cargo.lock build: cherry pick concurrent id error (#472) 2024-07-28 18:06:43 +08:00
Cargo.toml build: cherry pick concurrent id error (#472) 2024-07-28 18:06:43 +08:00
CHANGELOG.md build: bump version to 0.11.2 (#136) 2024-03-30 23:02:43 +08:00
CONTRIBUTING.md docs: improve and add contribution guide for syntaxes (#471) 2024-07-27 23:04:52 +08:00
LICENSE dev: init 2024-03-07 05:29:31 +08:00
package.json feat: convert introduction.typ to README.md (#479) 2024-07-30 17:12:20 +08:00
README.md feat: convert introduction.typ to README.md (#479) 2024-07-30 17:12:20 +08:00
yarn.lock test: add editor-side e2e testing (#441) 2024-07-20 18:52:15 +08:00

Tinymist

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:

Features

Language service (LSP) features:

  • Semantic highlighting
    • Also known as "syntax highlighting".
  • Diagnostics
    • Also known as "error checking" or "error reporting".
  • Document highlight
    • 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.
  • Document symbols
    • Also known as "document outline" or "table of contents" in Typst.
  • Folding ranges
    • You can collapse code/content blocks and headings.
  • Goto definitions
    • Right-click on a symbol and select "Go to Definition".
    • Or ctrl+click on a symbol.
  • References
    • Right-click on a symbol and select "Go to References" or "Find References".
    • Or ctrl+click on a symbol.
  • Hover tips
    • Also known as "hovering tooltip".
  • Inlay hints
    • 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.
  • Color Provider
    • 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.
  • Code Lens
    • Should give contextual buttons along with code. For example, a button for exporting your document to various formats at the start of the document.
  • Rename symbols
  • Help with function and method signatures
  • Workspace Symbols
  • Code Action
    • Increasing/Decreasing heading levels.
  • experimental/onEnter
    • Enter inside triple-slash comments automatically inserts ///
    • Enter in the middle or after a trailing space in // inserts //
    • Enter inside //! doc comments automatically inserts //!

Extra features:

  • Compiles to PDF on save (configurable to as-you-type, or other options)
  • Provides code lenses for exporting to various formats (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 and tinymist.initTemplateInPlace)
    • Trace execution in current document. (tinymist.profileCurrentFile)

Installation

Follow the instructions to enable tinymist in your favorite editor.

  1. Helix
  2. Neovim
  3. VSCode
  4. Zed

Documentation

See Online Documentation.

Packaging

Packaging status

Roadmap

After development for two months, most of the features are implemented. There are still some features to be implemented, but I would like to leave them in typst v0.12.0. I'll also pick some of them to implement on my weekends. Also please feel free to contribute if you are interested in the following features.

  • Documentation and refactoring: It is my current focus.
  • Spell checking: There is already a branch but no suitable (default) spell checking library is found.
  • 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 labels, dictionary fields, and named function arguments.
  • Go to definition of dictionary fields and named function arguments.
  • Autocompletion for raw language tags.
  • Improve symbol view's appearance.

Contributing

Please read the CONTRIBUTING.md file for contribution guidelines.

Acknowledgements