Saq's editor-autolist ($:/plugins/sq/editor-autolist) makes * and # lists 
effortless. 

But tgrosinger's minimalist little checklist 
($:/plugins/tgrosinger/tw5-checklist) 
uses [ ] lists.

How do I add [ ] to * and # in Saq's code?

I tried editing part of $:/plugins/sq/editor-autolist/editor-operation-autolist 
like so:

var listPrefixRegex = /^((\*|#|[ ])+).*/; 
var match = prevLine.match(listPrefixRegex); 
//ensure we only handle lines starting with * or # if(match != null && 
match[1]) { 
var trimmed = match[0].replace(/\s\s*$/, ''); 
var prefixRegEx = /^((\*|#|[ ])+)$/;

But It didn't work.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/04225dee-5afc-4850-90a0-5e7721d0e147n%40googlegroups.com.

Reply via email to