Hi Eric, Many thanks! As you note, I have used a similar approach for TiddlerCommander! https://kookma.github.io/TW-Commander/#%24%3A%2FCommander
The problem arises when I do some actions like title manipulation (add remove prefix, ...) a tiddler selected already will be remained in $:/temp/selectedTiddlers The same is true for other operation! You may search and filter some tiddlers by tags or field value and then you do operation on such fields The selected tiddlers still are in $:/temp/selectedTiddlers while the do not meet the search criteria any more! Right now after each bulk operation I remove all selections and user has to reselect them. --Mohammad On Wednesday, January 1, 2020 at 7:48:26 PM UTC+3:30, Eric Shulman wrote: > > On Wednesday, January 1, 2020 at 7:27:43 AM UTC-8, Mohammad wrote: >> >> I am wondering how we can use a kind of power search you developed with >> Tiddler Commander. >> As I described in separate email, there we use two step search >> >> 1. filter search >> 2. select among the search by step 1 >> >> > As I illustrated in a previous post, you can override the > doSearch_showresults() macro to produce whatever kind of output you like by > using the generated <<filter>> variable as input to further code. > > Thus, step 2 could be something like: > <$list filter=<<filter>>> > <$checkbox tiddler="$:/temp/selectedTiddlers" index=<<currentTiddler>> > checked=" " > checkactions="""<$action-setfield > $tiddler="$:/temp/selectedTiddlers" $index=<<currentTiddler>> $value=" " > />""" > uncheckactions="""<$action-setfield > $tiddler="$:/temp/selectedTiddlers" $index=<<currentTiddler>> />"""> > <$text text=<<currentTiddler>>/> > </$checkbox><br> > </$list> > <$button> DO STUFF! > <$list filter="[title[$:/temp/selectedTiddlers]indexes[]> > <$action... tiddler=<<currentTiddler>> ... /> > </$list> > </$button> > > The first part uses the generated <<filter>> to render checkboxes for each > tiddler that matches the search. > Selecting a checkbox adds the name of the corresponding tiddler as an > index in $:/temp/selectedTiddlers. > > Then, the second part provides a button that invokes some action widget(s) > for each item listed in $:/temp/selectedTiddlers > Of course, the actions performed can be based on whatever is specified by > the TiddlerCommander interface. > > -e > -- 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/f4749d22-8f0c-4aa4-acf4-5b644c537a6c%40googlegroups.com.

