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/7441f5a1-f317-4b74-a23c-176f18ab29ac%40googlegroups.com.

Reply via email to