Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(code): introduce fold gutter
Elian Doran9bbe111dd9f0
diff --git a/packages/codemirror/src/index.ts b/packages/codemirror/src/index.tsindex 6bf586437c..1fdd87109b 100644--- a/packages/codemirror/src/index.ts+++ b/packages/codemirror/src/index.ts@@ -1,6 +1,6 @@import { defaultKeymap, history, historyKeymap, indentWithTab } from "@codemirror/commands";import { EditorView, highlightActiveLine, keymap, lineNumbers, placeholder, ViewUpdate, type EditorViewConfig } from "@codemirror/view";-import { defaultHighlightStyle, StreamLanguage, syntaxHighlighting, indentUnit, bracketMatching } from "@codemirror/language";+import { defaultHighlightStyle, StreamLanguage, syntaxHighlighting, indentUnit, bracketMatching, foldGutter } from "@codemirror/language";import { Compartment, type Extension } from "@codemirror/state";import { highlightSelectionMatches } from "@codemirror/search";import { vim } from "@replit/codemirror-vim";@@ -40,6 +40,7 @@ export default class CodeMirror extends EditorView {highlightSelectionMatches(),bracketMatching(),lineNumbers(),+ foldGutter(),indentUnit.of(" ".repeat(4)),keymap.of([...defaultKeymap,