The problem with using list-ops and toggle is that if the starting value of the config tiddler is say codemirror, you will end up with a value of codemirror edit and a non-functioning editor.
Can I set properties/config from wikitext? IOW, in CM5, all settings were global seetings in control panel. It would be nice to set style settings using CSS from wikitext and CM6 uses inherit where possible:
Perhaps more importantly, it doesn’t work particularly well either in my opinion as it does not make use of the grouping feature, leading to a single very long list.
Yes, the configuration list is getting longer and longer, up to 40 items, and grouping is indeed a good idea, but I am not good at writing wikitext, so I have no idea of refactoring yet. I currently use code to automatically generate these configuration files.
Sorry if this has been covered earlier, but is there a way to enable smart indent in CM6? So if I add a new line from an already indented line, it gets indented the same amount? Very useful quality of life feature for me and I’m sure others.
For markdown, this feature is available out of the box, powered by lang-markdown, in lang-tiddlywiki there is still a lot of work to be done, smart-indent is one of them, but unfortunately, I don’t have time recently Write it. Maybe you can imitate lang-markdown. But it will take a lot of time.
Since we’re on the topic if indentions in codemirror, I was curious if collapsible sections by indention was being considered, similar to how visual studio code or notepad++ does it.
As far as I know, vscode and codemirror both use syntax trees to identify whether they can be folded, not through simple indentation. I am not familiar with nodepad++, and I have almost never used it.
codemirror6 plugin 1.4.5 fixes the style problem that the page cannot scroll after the edited tiddler is switched to editor fullscreen and exited directly. It is recommended to update
This may be a good idea, but colapsing tiddlywiki script elements could also be as useful. eg fold a widget into its first line or parameters, hiding its content and close tag.