Hi! New to tiddlywiki, was searchig for a way to delete tiddlers based on
search/mentions in any tiddler. I found this old code (see below) that only
works with filters e.g. tag[test] but not with any search. Would anyone be
able to help here?
Goal: write any string in the search bar and tiddler will search any
mention of the string. You can choose to checkmark the tiddlers you choose
to delete and select the button to delete selection.
Thank you!
\define listflter() [$(basefilter)$]
\define exclude()
[is[tiddler]$(basefilter)$] -[exclusionstatus[exclude]]
\end
<$edit-text tiddler="$:/temp/delete-filter" tag="input" placeholder="enter
a filter" default="" size=50/>
<$reveal state="$:/temp/delete-filter" type="nomatch" text="">
<$button class="tc-btn-invisible">
<$action-setfield $tiddler="$:/temp/delete-filter" $field="text" $value=""/>
{{$:/core/images/close-button}}
</$button>
</$reveal>
<$set name="basefilter" value={{$:/temp/delete-filter}}>
<$reveal state="$:/temp/delete-filter" type="nomatch" text="">
<$list filter=<<listflter>>>
<$checkbox field="exclusionstatus" checked="include" unchecked="exclude"
default="include"><$link to={{!!title}}></$link></$checkbox>
</$list>
</$reveal>
<$button>Delete Selected
<$list filter=<<exclude>>>
<$action-deletetiddler $filter=<<exclude>>/>
</$list>
<$list filter="[has[exclusionstatus]]">
<$action-setfield $field="exclusionstatus"/>
</$list>
</$button>
</$set>
--
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/de7d12ab-3143-411d-8bbf-2668ac1c6b79n%40googlegroups.com.