Note: in prefix:term space is not allowed! Best wishes Mohammad
On Wed, May 5, 2021 at 8:53 PM Mohammad Rahmani <mohammad.rahm...@gmail.com> wrote: > This is a partial solution! > > 1. In tiddlywiki.com create a new tiddler and paste the below wikitext > 2. Save and enter in the search box a prefix:term like title:operator > or tags:learnings > > > \define tidTemp() xx$:/temp/kookma/search > \define doSearch(field:"", term:"") > <$list filter="[all[tiddlers]!is[system]search:$field$:literal[$term$]]"> > > </$list> > \end > > <$edit-text tiddler=<<tidTemp>> field=text default="" tag=input/> > > <small>''Search for'': {{xx$:/temp/kookma/search}}</small> > > <!-- parse and search--> > <$list filter="[<tidTemp>get[text]enlist-input[]search:title[:]]"> > <$vars search-prefix={{{[<currentTiddler>split[:]first[]]}}} > search-term={{{[<currentTiddler>split[:]last[]]}}} > > <$list filter="[<search-prefix>!is[blank]] [<search-term>!is[blank]] > +[count[]match[2]]" variable=null> > <$macrocall $name=doSearch field=<<search-prefix>> term=<<search-term>> /> > </$list> > </$vars> > > </$list> > > > Please comment to improve! If there is a previous solution please let me > know! > I like to parse the input for several prefix:term like Google! > > > Best wishes > Mohammad > > > On Wed, May 5, 2021 at 8:33 PM Mohammad Rahmani < > mohammad.rahm...@gmail.com> wrote: > >> Is there any plugin or wikitext to let search using search prefix and >> symbols? >> >> I mean like Google or GitHub using something like below >> >> title:myTiddler >> keywords:myKeywords >> tags:myTerm >> >> Here title and keywords and tags are search prefixes! In Tiddlywiki they >> are fields >> The symbol is colon(:) >> >> So a prefix:term is the format to use a simple search box but do a more >> precise search! >> >> >> Best wishes >> Mohammad >> > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMB82wYP31QtE-JLy97sng%3D6c8q6UWgwvpE6G0iWAZ2Erg%40mail.gmail.com.