typst / webapp-issues

Issue tracker for Typst's web app.
https://typst.app
12 stars 0 forks source link

Code Folding #74

Open epbuennig opened 1 year ago

epbuennig commented 1 year ago

Description

It would be great if the web editor supported folds of certain elements. Folds are sections of source code which can be folded to only show as a single line.

An example in Visual Studio Code: image image

Elements that I would like to fold:

In a case where more than one fold icon would appear on the same line, the one which would fold the largest code section would take precedence. I.e.:

1 #set func(
2   ...
3 )
4 #set page("a4")

Should be folded to

1 #set func( // ...
5

Use Case

JaiWWW commented 6 months ago

Also please make paragraphs collapsible!

maribox commented 5 months ago

For the online editor at least, it would be great to have a feature akin to Notion's toggle shortcut ">" to hide a lot of text