All,

For me, search is the most important thing in TW. Its how I get around. As 
I've mentioned before my dream would be a keyboard shortcut to bring up a 
search bar with fuzzy finding to open any tiddler (doesnt seem to be much 
interest there). 

As a quick/dirty hack, you can simple copy/paste the default search defined 
in 

$:/core/ui/SideBarLists

<$set name="searchTiddler" value="$:/temp/search">
<div class="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="""<div class="tc-search-results">
{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem">

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

</$list>

</$reveal>

</$reveal>

</$set>

Paste that into a new tiddler, lets say called MySearch and tag it with:

$:/tags/TopLeftBar

Now you can have your sidebar hidden, and still always have access to the 
search bar. 

To do: add some left padding and other styling to make it nice to look at. 
If anyone comes up with something, please share!

Best,
Diego
 

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/ec0e70a0-856b-4f08-9dd0-1f2a25e295cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to