Hi,

I really like the search mechanism of TW. It's very fast and simple.

When I begin to search, the reveal mechanism of TW hides the tabs and only 
displays the search results.

<!-- Excerpt from 
https://github.com/Jermolene/TiddlyWiki5/blob/master/core/ui/SideBarLists.tid 
-->
<$reveal state="$:/temp/search" type="nomatch" text="">
  <div class="tc-search-results">
    <$set name="resultCount" value="""<$count 
filter="[!is[system]search{$:/temp/search}]"/>""">
      {{$:/language/Search/Matches}}
    </$set>
    <$list filter="[!is[system]search{$:/temp/search}sort[title]limit[250]]" 
template="$:/core/ui/ListItemTemplate"/>
  </div>
</$reveal>


However, I developed a plugin that visualizes tiddlers and their relations 
as nodes on a canvas and if I start a search, I want the nodes on the 
canvas to be filtered.

*In other words, I want to use an alternative way to present the results of 
the search*

My Problem: I cannot enable my plugin to visualize the search results.

The following modification would change that:

<$reveal state="$:/temp/search" type="nomatch" text="">
  <div class="tc-search-results">
    <<tabs "[all[shadows+tiddlers]tag[$:/tags/searchVisualizer]!has[draft.of]]" 
"$:/core/ui/DefaultSearchVisualizer">>
  </div>
</$reveal>


with $:/core/ui/DefaultSearchVisualizer being:

title: $:/core/ui/DefaultSearchVisualizer
caption: Standard search

<$set name="resultCount" value="""<$count 
filter="[!is[system]search{$:/temp/search}]"/>""">
  {{$:/language/Search/Matches}}
</$set>
<$list filter="[!is[system]search{$:/temp/search}sort[title]limit[250]]" 
template="$:/core/ui/ListItemTemplate"/>


Then anybody could create a tiddler and tag it with 
"$:/tags/searchVisualizer" and it is displayed as search result tab.
People could create plugins to visualize search results in an alternative 
way (I for example display a graph with relations). Context search could 
also be included this way, as it is also just a different visualization 
method of search result.

*A user could define in the config tiddler, which is his/hers favorite 
result visualizer and set it to the default.*

This is similar to firefox quick search next to the address-bar where i can 
select multiple engines to render my search results.

Check out these screenshots:

<https://lh4.googleusercontent.com/-9Ysfzkx5iDU/VEvWz5ONTLI/AAAAAAAAAB8/A8T79ljXC8M/s1600/Selection_353.png>
 
<https://lh4.googleusercontent.com/-PCY4ftDt4Lw/VEvWrm3-REI/AAAAAAAAAB0/CYwXRn9VGbw/s1600/Selection_352.png>

Regards Felix

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to