tags: $:/tags/Macro title: $:/plugins/kookma/refnotes/macros/showabbrs type: text/vnd.tiddlywiki \define showabbrs(filter:"[]", dtiddler:"Glossary", title:"Empty", emptyMessage:"") <$wikify name="indexes" text=<> > <$macrocall $name="abbr-list" indexes=<> dtiddler=<<__dtiddler__>> title=<<__title__>> emptyMessage=<<__emptyMessage__>> /> \end \define patterndb() \[\[|\]\] \define pattern() ('.*?'|".*?"|\S+) \define output-item(p) <$list filter="""[<__p__>search-replace:g:regexp,["]]""" variable=pars> <$list filter="""[trim[]!prefix[dict:]search-replace[term:],[]splitregexptrim[]!is[blank]!prefix[dict:]first[]]"""> <$text text=<>/> <$list filter="""[trim[]prefix[dict:]search-replace[term:],[]splitregexptrim[]!is[blank]!prefix[dict:]last[]]"""> <$text text=<>/> \end \define find-all-items() <$list filter=<<__filter__>> > <$macrocall $name="find" text={{!!text}} begin="< \end \define abbr-list(dtiddler, indexes, title:"Empty", emptyMessage:"") <$list filter="[limit[1]]" variable=null emptyMessage=<<__emptyMessage__>> > <$reveal tag="div" type="nomatch" default="Empty" text=<<__title__>> >

<$text text=<<__title__>> />

<$list filter="""[subfilter<__indexes__>]""" variable="item">
<$text text=<> /> <$set name="term" tiddler=<<__dtiddler__>> index=<> emptyValue=<> > <>
\end \define term-not-found() Term not found \end