@bimlas

Adding multiline support is easy if its limited to just ordered or 
unordered lists, that is: not a combination of both. When you start mixing 
the two it quickly becomes rather complicated to figure out what character 
to be adding to indent, with needing to look behind for several lines.

This was written as a quick solution to address an immediate and limited in 
scope request on reddit. So not a lot of thought has been put into larger 
architecture. However, I don't think there are any existing solutions that 
don't add a lot more complexity (and more lines of code).

Arguably you could write a core mirror plugin that handled this as well as 
other things as link autocompletion.

On Saturday, August 15, 2020 at 10:15:56 AM UTC+2, bimlas wrote:
>
> Saq,
>
> I think it's plenty enough to add a same character if the line starts with 
> * or #, otherwise a tab (or two spaces; the indent type should be 
> optional). Edge cases, when * and both "plain text" are within a paragraph, 
> should be handled by the user instead of an overly complicated algorithm.
>
> Thinking about how the plugin works, it is starting to look like 
> CodeMirror, which works in a simple textarea instead of a "dedicated" 
> div. Isn't there a ready-made solution for this already where the knowledge 
> of the textarea is supplemented excluding the syntax highlight?
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a31ec1e5-a391-4d67-ab8a-0432bfcf5f00o%40googlegroups.com.

Reply via email to