Sublime Forum

Building with typst

#1

Trying to build a build Latextools kind-of for typst (just playing with it)
File: Typst.sublime-build:

{
  "shell_cmd": "typst compile \"$file\" \"$file_path/$file_base_name.pdf\"",
  "file_regex": "^(.*?):([0-9]+):([0-9]+): (.*)$",
  "hide_build_panel": "no_errors",
  "selector": "source.typst"
}

How could I make it refresh in Skim (no focus)… every time I save. Thanks!!!

0 Likes

#2

This is what Latextools provides its custom build command make_pdf for, which is used instead of ST’s default exec build runner.

FWIW, "hide_build_panel":no_errors"is also a feature provided bymake_pdf`, only.

Basically, Latextools calls required command to open desired viewer and then invokes sublime.active_window().bring_to_front() to re-focus ST window afterwards.

0 Likes