mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +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:
parent
a6875df7ef
commit
41e338dc41
@ -11,5 +11,7 @@ type: json
|
||||
"Alt-T": "transposeChars",
|
||||
"Alt-U": "undoSelection",
|
||||
"Shift-Alt-U": "redoSelection",
|
||||
"Cmd-U": ""
|
||||
"Cmd-U": "",
|
||||
"Tab": "indentAuto()",
|
||||
"Enter": "newLineAndIndent()"
|
||||
}
|
||||
|
3
plugins/tiddlywiki/codemirror/config/indentWithTabs.tid
Normal file
3
plugins/tiddlywiki/codemirror/config/indentWithTabs.tid
Normal file
@ -0,0 +1,3 @@
|
||||
title: $:/config/codemirror/indentWithTabs
|
||||
type: bool
|
||||
text: true
|
3
plugins/tiddlywiki/codemirror/config/smartIndent.tid
Normal file
3
plugins/tiddlywiki/codemirror/config/smartIndent.tid
Normal file
@ -0,0 +1,3 @@
|
||||
title: $:/config/codemirror/smartIndent
|
||||
type: bool
|
||||
text: true
|
@ -1,3 +1,3 @@
|
||||
title: $:/config/codemirror/tabSize
|
||||
type: integer
|
||||
text: 4
|
||||
text: 2
|
||||
|
Loading…
Reference in New Issue
Block a user