You can use the [regexp[...]] filter operator to search for exact phrase matches including spaces.
1) Open the $:/AdvancedSearch panel (click the magnifying glass icon next to the regular sidebar search input field)
2) In $:/AdvancedSearch, switch to the "Filter" tab
3a) To search titles, enter your search syntax like this:
[regexp[your phrase here]]
3b) To search tiddler text, enter your search like this:
[regexp:text[your phrase here]]
Notes:
* Because the syntax uses square brackets, you cannot search for text that includes square brackets.
* If you want to search both title AND text fields at the same time, you can combine the filters in a sequence, separated by a space, like this:
[regexp[your phrase here]] [regexp:text[your phrase here]]
* If you don't want to use the $:/AdvancedSearch interface, you can create your own custom interface by putting the following syntax into a tiddler you create:
<$edit-text tiddler="$:/temp/mysearch" tag="input" default=""/><br>
<$reveal state="$:/temp/mysearch" type="nomatch" text="">
<<list-links "[regexp{$:/temp/mysearch}] [regexp:text{$:/temp/mysearch}] -[title[$:/temp/mysearch]]">>
</$reveal>
* The $edit-text widget stores your search input in $:/temp/mysearch (you can use any tiddler name you like, but something starting with "$:/temp/..." is recommended to avoid cluttering up your regular list of tiddlers)
* The $reveal widget prevents listing ALL tiddlers when the search input is blank.
* The <<list-links>> macro shows a bullet list using the combined title/text search filter, and also automatically excludes the temporary tiddler that holds your search input text.
* Because the custom search uses a separate tiddler to store the search text, you CAN search for text containing square brackets, as it avoids conflicting with the surrounding filter syntax.
* If you add the tag "$:/tags/SideBar" to your custom tiddler, it will appear as an extra tab in the sidebar, allowing you to quickly invoke the custom search at any time.
enjoy,
-e
Eric Shulman
TiddlyTools.com: "Small Tools for Big Ideas!" (tm)
InsideTiddlyWiki: The Missing Manuals