1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-09-03 11:28:01 +00:00

Add smartIndent to codemirror (#3810)

* add smartIndent config to codemirror

* add indentWithTabs config to codemirror

* make default tabSize same value as indentUnit

* make tab and enter do smart indentation
This commit is contained in:
Simon Huber
2019-03-02 14:46:10 +01:00
committed by Jeremy Ruston
parent a6875df7ef
commit 41e338dc41
4 changed files with 10 additions and 2 deletions

View File

@@ -11,5 +11,7 @@ type: json
"Alt-T": "transposeChars",
"Alt-U": "undoSelection",
"Shift-Alt-U": "redoSelection",
"Cmd-U": ""
"Cmd-U": "",
"Tab": "indentAuto()",
"Enter": "newLineAndIndent()"
}

View File

@@ -0,0 +1,3 @@
title: $:/config/codemirror/indentWithTabs
type: bool
text: true

View File

@@ -0,0 +1,3 @@
title: $:/config/codemirror/smartIndent
type: bool
text: true

View File

@@ -1,3 +1,3 @@
title: $:/config/codemirror/tabSize
type: integer
text: 4
text: 2