diff --git a/notes/edit.go b/notes/edit.go index 8635ed4..cfc1c5b 100755 --- a/notes/edit.go +++ b/notes/edit.go @@ -53,12 +53,19 @@ func editFile(p filetree.Path) string { smartIndent: true, indentUnit: 3, tabSize: 3, + indentWithTabs: false, lineWrapping: true, autofocus: true, dragDrop: false, spellcheck: true, autocorrect: false, autocapitalize: false, + extraKeys: { + Tab: (cm) => { + var spaces = Array(cm.getOption("indentUnit") + 1).join(" "); + cm.replaceSelection(spaces); + }, + }, }) } else { console.log(navigator.userAgent)