tinymist icon indicating copy to clipboard operation
tinymist copied to clipboard

[VSCode] Support drag and drop of files (pdf and images) into the typst editor

Open LasseRosenow opened this issue 6 months ago • 1 comments

Motivation

Writing function to include images etc. is tiresome.

Description

VSCode allows to transform the drag and drop behavior for different file types into the code editor. The markdown extension already supports this:

  • You can take a image file and drag it with your mouse into a markdown file.
  • The text that is pasted into the markdown file then becomes the correct markdown code to include the image.
  • For more information see here

It would be amazing if we could have this feature for typst as well.

For example to drag an image into a typst file results in:

#image("path_to_image.jpg")

Or dragging a typst file into another typst file results int:

#include "path_to_typst_file.typ"

LasseRosenow avatar Aug 07 '24 12:08 LasseRosenow