Implements #51: Folding commands

This commit is contained in:
Zef Hemel
2023-06-14 19:27:18 +02:00
parent 260c91e4b1
commit 1b922791f3
7 changed files with 105 additions and 2 deletions
+5
View File
@@ -84,6 +84,7 @@ import { Panel } from "./components/panel.tsx";
import { TopBar } from "./components/top_bar.tsx";
import {
BookIcon,
codeFolding,
HomeIcon,
preactRender,
TerminalIcon,
@@ -879,6 +880,9 @@ export class Editor {
history(),
drawSelection(),
dropCursor(),
codeFolding({
placeholderText: "…",
}),
indentOnInput(),
...cleanModePlugins(this),
EditorView.lineWrapping,
@@ -914,6 +918,7 @@ export class Editor {
run: (): boolean => {
this.viewDispatch({ type: "start-navigate" });
this.space.updatePageList();
return true;
},
},