Sounds interesting, but I am not against an indent level method before that, it will allow a outliner style of coding or adding text content with simple tab indents. Possibly an easier thing to achive 1st than syntax based?
from memory Excel and word allow forms of this
@Mohammad’s section editor does a version of this from view mode based on tiddlywiki heading levels. You can selectivly edit each section.
If we are to do syntax level things it would possibly better to start with a syntax highlighter that is aware of tiddlywiki’s scripy like widgets, procedures, variables and there closing tags along with regular and arbitary html tags etc…
Command that shows a dialog asking the user for a line number, and when a valid position is provided, moves the cursor to that line.
Supports line numbers, relative line offsets prefixed with + or -, document percentages suffixed with %, and an optional column position by adding : and a second number after the line number.
This would be an interesting thing to implement in order to quickly return to a position in the editor, particularly when using quick-saving plugin buttons like EditButtons.
Is there a good way in the git, or in the tiddler list, to enable this feature?
Also wondering if there’s material about
compiling/packaging the lighter (“basic” branch) git CodeMirror plugin.
creating custom trigger chars and lists for ide dropdowns
I haven’t tested the usage of this function yet, but at that time, because I didn’t use it frequently and there was a shortcut key conflict, I temporarily disabled it.
I do have such a feature that I haven’t implemented yet. It’s very useful to save the last scroll/edited cursor position. But I haven’t had time to complete it recently.
The API of codemirror6 is too large. I have not yet found the relevant API to implement this function.
Perhaps this could somehow be added to $:/plugins/telmiger/EditButtons rather than code mirror if the cursor position (nth character) can be found.
I think it reasonable if you are editing a tiddler, to save the cursor position in that tiddler but separately, perhaps in a data tiddler, tiddlername / position would be better.
Eventually we may even be able to edit or view a tiddler while giving a cursor position from a special link. Actually this could be done by manually setting a cursor position if nothing else.
May be we could save multiple cursor positions with names and intergrate a keywork search at the same time