mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-08 23:03:50 +00:00
parent
e724bc6120
commit
989cee5059
@ -8,6 +8,7 @@ Matches: //<small><<resultCount>> matches</small>//
|
|||||||
Matches/All: All matches:
|
Matches/All: All matches:
|
||||||
Matches/Title: Title matches:
|
Matches/Title: Title matches:
|
||||||
Search: Search
|
Search: Search
|
||||||
|
Search/TooShort: Search text too short
|
||||||
Shadows/Caption: Shadows
|
Shadows/Caption: Shadows
|
||||||
Shadows/Hint: Search for shadow tiddlers
|
Shadows/Hint: Search for shadow tiddlers
|
||||||
Shadows/Matches: //<small><<resultCount>> matches</small>//
|
Shadows/Matches: //<small><<resultCount>> matches</small>//
|
||||||
|
@ -21,6 +21,8 @@ caption: {{$:/language/Search/Shadows/Caption}}
|
|||||||
|
|
||||||
<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
|
<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
|
||||||
|
|
||||||
|
<$list filter="[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem">
|
||||||
|
|
||||||
<$set name="resultCount" value="""<$count filter="[all[shadows]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]]"/>""">
|
<$set name="resultCount" value="""<$count filter="[all[shadows]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]]"/>""">
|
||||||
|
|
||||||
<div class="tc-search-results">
|
<div class="tc-search-results">
|
||||||
@ -33,6 +35,8 @@ caption: {{$:/language/Search/Shadows/Caption}}
|
|||||||
|
|
||||||
</$set>
|
</$set>
|
||||||
|
|
||||||
|
</$list>
|
||||||
|
|
||||||
</$reveal>
|
</$reveal>
|
||||||
|
|
||||||
<$reveal state="$:/temp/advancedsearch" type="match" text="">
|
<$reveal state="$:/temp/advancedsearch" type="match" text="">
|
||||||
|
@ -20,6 +20,7 @@ caption: {{$:/language/Search/Standard/Caption}}
|
|||||||
</$linkcatcher>
|
</$linkcatcher>
|
||||||
|
|
||||||
<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
|
<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
|
||||||
|
<$list filter="[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem">
|
||||||
<$set name="searchTiddler" value="$:/temp/advancedsearch">
|
<$set name="searchTiddler" value="$:/temp/advancedsearch">
|
||||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]" emptyMessage="""
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]" emptyMessage="""
|
||||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]">
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]">
|
||||||
@ -29,4 +30,5 @@ caption: {{$:/language/Search/Standard/Caption}}
|
|||||||
<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]" default={{$:/config/SearchResults/Default}}/>
|
<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]" default={{$:/config/SearchResults/Default}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$set>
|
</$set>
|
||||||
|
</$list>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
|
@ -21,6 +21,8 @@ caption: {{$:/language/Search/System/Caption}}
|
|||||||
|
|
||||||
<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
|
<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
|
||||||
|
|
||||||
|
<$list filter="[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem">
|
||||||
|
|
||||||
<$set name="resultCount" value="""<$count filter="[is[system]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]]"/>""">
|
<$set name="resultCount" value="""<$count filter="[is[system]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]]"/>""">
|
||||||
|
|
||||||
<div class="tc-search-results">
|
<div class="tc-search-results">
|
||||||
@ -33,6 +35,8 @@ caption: {{$:/language/Search/System/Caption}}
|
|||||||
|
|
||||||
</$set>
|
</$set>
|
||||||
|
|
||||||
|
</$list>
|
||||||
|
|
||||||
</$reveal>
|
</$reveal>
|
||||||
|
|
||||||
<$reveal state="$:/temp/advancedsearch" type="match" text="">
|
<$reveal state="$:/temp/advancedsearch" type="match" text="">
|
||||||
|
@ -17,9 +17,12 @@ title: $:/core/ui/SideBarLists
|
|||||||
{{$:/core/images/close-button}}
|
{{$:/core/images/close-button}}
|
||||||
</$button>
|
</$button>
|
||||||
<$button popup=<<qualify "$:/state/popup/search-dropdown">> class="tc-btn-invisible">
|
<$button popup=<<qualify "$:/state/popup/search-dropdown">> class="tc-btn-invisible">
|
||||||
|
{{$:/core/images/down-arrow}}
|
||||||
|
<$list filter="[{$:/temp/search}minlength{$:/config/Search/MinLength}limit[1]]" variable="listItem">
|
||||||
<$set name="resultCount" value="""<$count filter="[!is[system]search{$(searchTiddler)$}]"/>""">
|
<$set name="resultCount" value="""<$count filter="[!is[system]search{$(searchTiddler)$}]"/>""">
|
||||||
{{$:/core/images/down-arrow}} {{$:/language/Search/Matches}}
|
{{$:/language/Search/Matches}}
|
||||||
</$set>
|
</$set>
|
||||||
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
<$reveal state="$:/temp/search" type="match" text="">
|
<$reveal state="$:/temp/search" type="match" text="">
|
||||||
@ -33,8 +36,12 @@ title: $:/core/ui/SideBarLists
|
|||||||
|
|
||||||
<$reveal tag="div" class="tc-block-dropdown tc-search-drop-down tc-popup-handle" state=<<qualify "$:/state/popup/search-dropdown">> type="nomatch" text="" default="">
|
<$reveal tag="div" class="tc-block-dropdown tc-search-drop-down tc-popup-handle" state=<<qualify "$:/state/popup/search-dropdown">> type="nomatch" text="" default="">
|
||||||
|
|
||||||
|
<$list filter="[{$:/temp/search}minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem">
|
||||||
|
|
||||||
{{$:/core/ui/SearchResults}}
|
{{$:/core/ui/SearchResults}}
|
||||||
|
|
||||||
|
</$list>
|
||||||
|
|
||||||
</$reveal>
|
</$reveal>
|
||||||
|
|
||||||
</$reveal>
|
</$reveal>
|
||||||
|
3
core/wiki/config/SearchMinLength.tid
Normal file
3
core/wiki/config/SearchMinLength.tid
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
title: $:/config/Search/MinLength
|
||||||
|
|
||||||
|
3
|
@ -0,0 +1,11 @@
|
|||||||
|
created: 20161011074235805
|
||||||
|
modified: 20161011074235805
|
||||||
|
tags: [[Hidden Settings]]
|
||||||
|
title: Hidden Setting: Search Minimum Length
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
<<.from-version "5.1.14">> Controls the minimum length of a search string before results are displayed.
|
||||||
|
|
||||||
|
Defaults to "3".
|
||||||
|
|
||||||
|
$:/config/Search/MinLength
|
Loading…
x
Reference in New Issue
Block a user