mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
chore(code): add smart tab behaviour
This commit is contained in:
@@ -5,6 +5,7 @@ import { Compartment, type Extension } from "@codemirror/state";
|
||||
import { highlightSelectionMatches } from "@codemirror/search";
|
||||
import { vim } from "@replit/codemirror-vim";
|
||||
import byMimeType from "./syntax_highlighting.js";
|
||||
import smartIndentWithTab from "./extensions/custom_tab.js";
|
||||
|
||||
type ContentChangedListener = () => void;
|
||||
|
||||
@@ -45,7 +46,7 @@ export default class CodeMirror extends EditorView {
|
||||
keymap.of([
|
||||
...defaultKeymap,
|
||||
...historyKeymap,
|
||||
indentWithTab
|
||||
...smartIndentWithTab
|
||||
])
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user