Mohammed:

replace
$:/temp/search

with
$:/temp/search*1*

and the synchronization stops

Pit.W.

Am 2018-07-09 um 04:55 schrieb Mohammad:
Thanks Dave!
Why the searchbox in the sidebar is synchronized with you code e.g. it seems what you type and what you get also shown in the sidebar searchbox!

/Mohammad

On Monday, July 9, 2018 at 3:09:18 AM UTC+4:30, Dave wrote:

    This is just for reference - I couldn't find a quick answer on this

    In TW classic you could add a search box anywhere (say in a
    tiddler you'll often have open) with "<<search>>"

    In TW5 you could do this: {{$:/core/ui/SideBarLists}}, but that
    gives you not only a search box, but the tabs and tiddler lists
    underneath.


    For just the search box only you can copy the code in that shadow
    tiddler, put it in another tiddler, say "justSearch" and remove
    this near the end:
    |
    <$macrocall $name="tabs"
    tabsList="[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]"
    default={{$:/config/DefaultSidebarTab}}
    state="$:/state/tab/sidebar" />
    |

    And then anywhere you want a search box just put {{justSearch}},
    and there it is :)

    Or, if you want to just copy that blob of code from here, here it is:

    |
    <divclass="tc-sidebar-lists">

    <$set name="searchTiddler" value="$:/temp/search">
    <divclass="tc-search">
    <$edit-text tiddler="$:/temp/search" type="search" tag="input"
    focus={{$:/config/Search/AutoFocus}}
    focusPopup=<<qualify"$:/state/popup/search-dropdown">>
    class="tc-popup-handle"/>
    <$reveal state="$:/temp/search" type="nomatch" text="">
    <$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}}
    aria-label={{$:/language/Buttons/AdvancedSearch/Caption}}
    class="tc-btn-invisible">
    <$action-setfield $tiddler="$:/temp/advancedsearch"
    text={{$:/temp/search}}/>
    <$action-setfield $tiddler="$:/temp/search" text=""/>
    <$action-navigate $to="$:/AdvancedSearch"/>
    {{$:/core/images/advanced-search-button}}
    </$button>
    <$button class="tc-btn-invisible">
    <$action-setfield $tiddler="$:/temp/search" text="" />
    {{$:/core/images/close-button}}
    </$button>
    <$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)$}]"/>""">
    {{$:/language/Search/Matches}}
    </$set>
    </$list>
    </$button>
    </$reveal>
    <$reveal state="$:/temp/search" type="match" text="">
    <$button to="$:/AdvancedSearch"
    tooltip={{$:/language/Buttons/AdvancedSearch/Hint}}
    aria-label={{$:/language/Buttons/AdvancedSearch/Caption}}
    class="tc-btn-invisible">
    {{$:/core/images/advanced-search-button}}
    </$button>
    </$reveal>
    </div>

    <$reveal tag="div" class="tc-block-dropdown-wrapper"
    state="$:/temp/search" type="nomatch" text="">

    <$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="""<divclass="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>"""
    variable="listItem">

    {{$:/core/ui/SearchResults}}

    </$list>

    </$reveal>

    </$reveal>

    </$set>

    </div>
    |




--
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] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[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/15889e6c-9791-4b68-839a-43495b88a91d%40googlegroups.com <https://groups.google.com/d/msgid/tiddlywiki/15889e6c-9791-4b68-839a-43495b88a91d%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.



_________________________________________________________________
________________________________________________________
Ihre E-Mail-Postfächer sicher & zentral an einem Ort. Jetzt wechseln und alte 
E-Mail-Adresse mitnehmen! https://www.eclipso.de

--
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/55d26ade-1410-93f9-41bf-44b166b11737%40eclipso.ch.
For more options, visit https://groups.google.com/d/optout.

Reply via email to