Hi Scott,
 

> Could you write a TW5 Javascript plugin that would perform the same sort 
> of string transformation — but using complex regular expressions?  :-O
>

Sure doable. The question for me would be: Can it be so generic as to not 
be tied to a single process / workflow? ...e.g. "make my type of 
checklists".
 

> I regularly get task lists from my co-workers that I transform into 
> checklists.  Currently, I do this by copying the list to Notepad++, running 
> a saved macro, and copying the output to my TiddlyWiki.  For example, I 
> might get a list like this:
>

Can you perhaps post the the regex and the macro for your above example so 
we get a true feel for the complexity involved and perhaps more 
specifically consider whether or not or how TiddlyWiki could be leveraged 
to try and achieve generic input => output transformations in the first 
place.

Sounds like you want to deserialize some input into an array of items 
holding variables filled by regex pattern matching ...and then serialize 
that with TiddlyWiki componentents / templates... that come with 
appropriate placeholders... and eventually save the lot to some place.

I could imagine some "insert" button in the editor (or a keyboard shortcut) 
that...

   1. opens a modal dialog where I can chose from a (filterable) list of 
   predefined transformation patterns / templates already defined
   2. have an input field to insert my input text
   3. click a button that generates the output text based on the 
   transformation rules / framework
   4. that I get to also edit right and adjust right there
   5. and finally click "ok" to insert the end result at the caret position 
   in the editor

Best wishes,

Tobias.

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/014b70e8-9ecb-42fd-9c69-cebe5a02583f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to