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
+18
View File
@@ -128,3 +128,21 @@ export function setUiOption(key: string, value: any): Promise<void> {
export function vimEx(exCommand: string): Promise<any> {
return syscall("editor.vimEx", exCommand);
}
// Folding
export function fold() {
return syscall("editor.fold");
}
export function unfold() {
return syscall("editor.unfold");
}
export function foldAll() {
return syscall("editor.foldAll");
}
export function unfoldAll() {
return syscall("editor.unfoldAll");
}