On Wednesday, December 27, 2017 at 8:45:07 PM UTC-8, tobaisch wrote:
>
> It's not really much harder than using the standard search and gives you 
>> the flexibility you're after.
>>
>  
> I have a different opinion.
> the standard search is always fixed in the sidebar. A huge difference!
> The search results do not hide the content I am currently working on.
> That's why the sidebar was invented. :)
>

You can add the filter search interface into the sidebar tabs.  Here are 
the exact steps:

1) Press the magnifying glass next to the standard sidebar search input to 
open $:/AdvancedSearch
2) From the $:/AdvancedSearch *shadows* tab, search for 
"AdvancedSearch/Filter"
3) Select "$:/core/ui/AdvancedSearch/Filter" from the search results to 
display that tiddler in the story
4) Edit that tiddler and add a tag: "$:/tags/SideBar"
5) You will now have a "Filter" tab in the sidebar.  Select that tab to 
perform filter searches with the results displayed in the sidebar.

Extra goodness... there is a down-arrow button next to the filter search 
input.  This button displays a dropdown list of pre-defined filter 
seaches.  To add your own pre-defined filter searches to this dropdown list:

1) Create a new tiddler (e.g., "MyFilterSearch") tagged with 
"$:/tags/Filter"
2) Add a "description" field, e.g., "Apples not Oranges"
3) Add a "filter" field containing the filter search syntax, e.g., 
"[search[apples]!search[oranges]]"
4) Add a "list-before" field.  Do not enter a value for this field.  This 
will cause the entry to automatically appear before all other pre-defined 
filters in the list.

You can create as many custom filter searches as you like by following the 
above steps again, using different titles, descriptions, and filter field 
values.

One display issue to fix:

The list of pre-defined filters drops down to the RIGHT of the down-arrow 
button.  In the sidebar, this typically results in part of the list flowing 
off the right edge of the window, making it hard to use since you can only 
see part of the filter descriptions.  To fix this:

1) Edit the shadow tiddler 
"$:/core/ui/AdvancedSearch/Filter/FilterButtons/dropdown"
2) Change this line:
<$reveal state=<<qualify "$:/state/filterDropdown">> type="popup" 
position="belowleft" animate="yes">
to
<$reveal state=<<qualify "$:/state/filterDropdown">> type="nomatch" text="" 
position="belowleft" animate="yes">
This will shift the drop-down so it appears directly under the filter 
search input, rather than below the down-arrow button.

enjoy,
-e
Eric Shulman
TiddlyTools.com: "Small Tools for Big Ideas!" (tm)
InsideTiddlyWiki: The Missing Manuals

-- 
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/f3083733-b3e9-40f8-9ffa-b78ed4bd1ee0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to