tinymist icon indicating copy to clipboard operation
tinymist copied to clipboard

Preview: Open linked file with system default app

Open aaeberharter opened this issue 6 months ago • 0 comments

I would like to use this code for including images in typst:

#let debug = true

#let my_image(filename, ..args) = {
  image(filename, ..args)
  if debug {
      link(filename)[#underline[#"Open "#filename]]
  }
}

#my_image("test.svg")

In Acrobat Reader I can click the debug link and my default SVG editor (i.e. Inkscape) opens the file for me to edit. In VS Code preview this unfortunately does not work, funnily however mailto:test@test does work.

aaeberharter avatar Aug 21 '24 16:08 aaeberharter