So it wasn't super straight forward. I had to create another layer of subfilter, but it does work. New behavior is like this:
User types in filter; filter list dynamically changes. All tiddlers are unselected.
User clicks select all. All get selected, because all present tiddlers get sent to $:/temp/commander/selected-titles
User modifies filter in one of two ways.
They reduce the current list. All present remain selected. selected-titles has redundant tiddlers in its list, but that's okay. The new Targets filter ignores any selected tiddlers that aren't present in the displayed list.
They add to the current list. They now have a mixture of selected and unselected tiddlers. They can select all by double-clicking the "Select None/All" button. This might look like strange behavior, but it may be preferable to blasting away their manual selections whenever they modify the filter in anyway.
If commander worked the other way around (i.e. all tiddlers are selected by default. You de-select the ones you don't want), then $:/plugins/kookma/commander/config/Targets gets simple again, no second layer of subfiltering, but that topic is another discussion.
Make sure to check this through. I don't know all of Commander's ins and outs.
So it wasn't super straight forward. I had to create another layer of subfilter, but it does work. New behavior is like this:
$:/temp/commander/selected-titles
selected-titles
has redundant tiddlers in its list, but that's okay. The new Targets filter ignores any selected tiddlers that aren't present in the displayed list.If commander worked the other way around (i.e. all tiddlers are selected by default. You de-select the ones you don't want), then
$:/plugins/kookma/commander/config/Targets
gets simple again, no second layer of subfiltering, but that topic is another discussion.Make sure to check this through. I don't know all of Commander's ins and outs.
This PR is related to #11.