I too am interested in being able to configure additional values for auto list to operate on including but not limited to * and # but also ! : and a custom unicode value I have the · character. Ideally we can use the tab on each of these to add “depth” like you can with * and #;
I have made a parser for my · character
Using this with ! is also useful for quickly typing a set of headings to outline a document, and with minor changes will be useful with the section editor
@Eskha I advise against using ; as this supposed to always be followed by a : to html standards see HTML dl tag
If you edit the regular expressions in three places in $:/plugins/sq/editor-autolist/editor-operation-autolist.js you can make this work
For example I replace *|# with *|·|!|:|# in three places
I note also if you do not include the character in the third regexp providing an empty line will not clear the current “autolist” - but shift-enter does
I have all this working with a hack of the existing plugin
However if it were possible to provide customisation it would be useful.
I am not sure @Eskha but it may be possible to do this for multi-character strings such as [ ] and [X] but I do not know regexp enough for this.
As I have done for my · character you can create an Editor toolbar button to select rows and apply/remove a prefix to each line selected, just as happens with * and # already.
Gloabbly, I can indeed hack $:/plugins/sq/editor-autolist/editor-operation-autolist.js to achieve the desired behavour.
My concern is to do this in a way that would avoid to directly hack this tiddler and avoid having to merge the change when @saqimtiaz updates his plugin.
Regarding the ; my autocompletion was proposing a : on the next line not a ; therefore it shoud stay compliant. Your approach of using a toolbar button is appealing, I just need to check if it can be modified to process the first line differently and insert a ;.