You can use regexp:type[^image] in your filter rather than look at each
type (.jpg, jpeg, png, ) .
The problem with modifying core is that the search will not upgrade the
next time you upgrade TW. So, if there's any improvements in search, you
won't get them. You will need to delete $:/core/ui/DefaultSearchResultList,
do the upgrade, and then apply your changes again.
Good luck,
-- Mark
On Thursday, January 11, 2018 at 12:36:00 AM UTC-8, Shaked Pesach wrote:
>
>
>
>> Found this solution that works for me:
>
> edit tiddler $:/core/ui/DefaultSearchResultList
>
> and add a filter for title results and content results. for example:
>
>
> \define searchResultList()
>
> //<small>{{$:/language/Search/Matches/Title}}</small>//
>
>
>
> *<$list
> filter="[!is[system]!suffix[.png]!suffix[.jpg]!suffix[.jpeg]!suffix[.PNG]!suffix[.JPG]!suffix[.JPEG]search:title{$(searchTiddler)$}sort[title]limit[250]]"
>
> template="$:/core/ui/ListItemTemplate"/>*
>
>
>
> //<small>{{$:/language/Search/Matches/All}}</small>//
>
>
>
> *<$list
> filter="[!is[system]!suffix[.png]!suffix[.jpg]!suffix[.jpeg]!suffix[.PNG]!suffix[.JPG]!suffix[.JPEG]search{$(searchTiddler)$}sort[title]limit[250]]"
>
> template="$:/core/ui/ListItemTemplate"/>*
>
>
>
> \end
>
> <<searchResultList>>
>
>
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/a79aa03f-04b1-4f9e-94ad-22029bcca5dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.