tags: $:/tags/Macro title: $:/core/macros/image-picker type: text/vnd.tiddlywiki \procedure image-picker-thumbnail(actions) <$button tag="a" tooltip=<>><$transclude $variable="actions"/><$transclude tiddler=<>/> \end \procedure image-picker-list(filter,actions) \whitespace trim <$list filter=<> variable="imageTitle"> <$transclude $variable="image-picker-thumbnail" actions=<>/> \end \procedure image-picker(actions,filter:"[all[shadows+tiddlers]is[image]] -[type[application/pdf]] +[!has[draft.of]$subfilter$sort[title]]",subfilter:"") \whitespace trim
<$let state-system=<> tv-filter={{{ [search-replace[$subfilter$],] }}}> <$checkbox tiddler=<> field="text" checked="show" unchecked="hide" default="hide"> {{$:/language/SystemTiddlers/Include/Prompt}} <$reveal state=<> type="match" text="hide" default="hide" tag="div"> <$transclude $variable="image-picker-list" filter=`$(tv-filter)$ +[!is[system]]` actions=<>/> <$reveal state=<> type="nomatch" text="hide" default="hide" tag="div"> <$transclude $variable="image-picker-list" filter=<> actions=<>/>
\end \procedure image-picker-include-tagged-images(actions) <$transclude $variable="image-picker" filter="[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[!has[draft.of]sort[title]]" actions=<>/> \end