Thanks everyone. I was finding myself opening a blank tiddler and typing lists of things only to realize afterwards that, “oh, this should have been a checklist,” so simply needing to add a tag to convert it into a checklist was my goal.
That was relatively easy with similar examples out there, the draggability is what took a lot of synthesizing so I thought I’d share my solution.
The $draggable and $droppable widgets have “startactions”/“endactions” and “actions” attributes that can execute actions in a sequence to write stuff to and from a $:/temp tiddler.
A $list filter uses the operator “split” to break up the text, and the attribute “counter” to generate a value/index pair that get written into the $:/temp data tiddler. It is important to add zero padding to the “counter” variable because the reordering operations seem to get messed up when there are both 1-digit and 2-digit numbers.
The “counter”-ed index numbers also get written into the list field and are treated as a title list to do the reordering filter operations.
After the title list of indexes gets reordered, more actions rewrite the text field and delete the temporary fields and tiddlers that were created during the process.
My original solution just used “split” and “join” filter operators but then brackets in the target text would break when dragging so I had to use this more convoluted process with the data tiddler indexes as a title list.