You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor fold controls for improved UI and functionality
Refactor fold controls for improved UI and functionality
- Updated the fold controls to use larger, clearer double-chevron icons.
- Ensured the fold control column is reserved whenever `__FOLD_START__`
markers are present in the content.
- Fixed misalignment/overlap when folding programmatically generated
code.
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,19 @@
2
2
3
3
## NEXT RELEASE
4
4
5
+
### Features
6
+
7
+
-**Fold markers `${fold}` … `${/fold}`**: collapsible sections are now expressed as content markers (mirroring the block-comment `${key}…${/key}` pattern, no companion binding needed). `${fold}` starts collapsed, `${fold:open}` starts expanded. They work in any language and — unlike the previous attribute — both inside a `<textarea>`**and** via the `code` property (programmatic content). Marker lines are removed from the output and from copy/download.
8
+
-**Escaping `\${...}`**: write `\${...}` to render the literal `${...}` instead of interpreting it (binding, block comment or fold) — useful for documenting the syntax with the component itself.
9
+
10
+
### Improvements
11
+
12
+
-**Collapsible UI polish**: the collapsed band uses a larger double-chevron "unfold" icon (clearer than a caret), its whole row is clickable to expand, and its layout is overlap-proof (the `⋯ N lines` text can no longer overlap the icon). All fold chevrons are crisp SVGs.
13
+
14
+
### Breaking changes
15
+
16
+
-**Removed `collapsible` / `collapsed``<textarea>` attributes** (introduced in 1.1.0) in favor of the `${fold}` markers above. Migrate `<textarea collapsible collapsed>…</textarea>` to a `${fold}` … `${/fold}` block (and `collapsible` without `collapsed` to `${fold:open}`).
<p>Add <code>collapsible</code>on a <code><textarea></code> to fold a range of non-interactive lines (GitHub-diff style). Add <code>collapsed</code> to start folded. Folding is purely visual — copy/download still export the full content:</p>
1049
+
<p>Wrap a range of lines in <code>${fold}</code>… <code>${/fold}</code>markers to make it foldable (GitHub-diff style). Collapsed by default; use <code>${fold:open}</code> to start expanded. The marker lines are removed from the output — folding is purely visual, and copy/download still export the full content. Works inside a <code><textarea></code> or via the <code>code</code> property, in any language. Bindings <strong>inside</strong> a fold stay fully interactive — they're just hidden until expanded (here <code>trace</code> and <code>buffer</code> are editable once you open the block).</p>
1050
1050
1051
1051
<divclass="code-header"><span>Written by developer</span></div>
<li><code>condition="key"</code> - Show when binding value is truthy</li>
1338
1348
<li><code>condition="!key"</code> - Show when binding value is falsy</li>
1339
-
<li><code>collapsible</code> - Make the section foldable (band shows the hidden line count)</li>
1340
-
<li><code>collapsed</code> - Start the section folded (requires <code>collapsible</code>)</li>
1341
1349
</ul>
1350
+
<p>Fold a range of lines with <code>${fold}</code> … <code>${/fold}</code> markers (collapsed by default) or <code>${fold:open}</code> … <code>${/fold}</code> (expanded). The band shows the hidden line count; folding is visual only (copy/download stay complete).</p>
0 commit comments