Great hack/workflow! Impressed. :)

Joshua Fontany

On Saturday, July 4, 2020 at 1:44:58 PM UTC-7 tony wrote:

> Thank you so much for this!!
>
> Leveraging the convenience of the browser address bar saves steps of 
> having to go through UI in Advanced Search
>
> Your method works with node.js as you explain so clearly!  Keyword + 
> <search term> expands to 
>
> http://localhost:8080/myfolder/mywiki.html#:[!is[system]search[<search 
> term>]] 
> <http://localhost:8080/myfolder/mywiki.html#:[!is[system]search[platinum]]>
>
> which opens up mywiki.html with search results in the story river :-) Wow!
>
> Best,
> tony 
>
> On Saturday, July 4, 2020 at 11:00:26 AM UTC-7 [email protected] wrote:
>
>> In the meantime I figured TiddlyWiki already filters system tiddlers out 
>> by default, so this could be made a little simpler. So for the record here 
>> is a canonical post gathering the whole procedure,
>>
>> Lets say you have a wiki at D:/TiddlyWiki.html and need to search it 
>> frequently and conveniently from your browser address bar like you would 
>> using any regular web search engine.
>> As Riz mentioned you can use the Permalinks 
>> <https://tiddlywiki.com/#PermaLinks>feature to pass down a *Story Filter* 
>> parameter directly from your address bar, that will determine which 
>> tiddlers are open on page load.
>>
>> Since most browsers interpret %s string in a URL as placeholder that 
>> gets replaced by a user search terms, you can setup a search engine or 
>> bookmark with a name like My Wiki, address pointing to your wiki like 
>> file:///D:/TiddlyWiki.html#:[search[%s]] and keyword wiki.
>> If you then type into the address bar the keyword followed by a space 
>> then a search term like personal notes so that you end up with something 
>> like  wiki personal notes it would then automatically resolve the 
>> address and take you to file:///D:/TiddlyWiki.html#:[search[personal 
>> notes]] .
>> This will effectively search you wiki for personal notes and open it 
>> already displaying a story river of open tiddlers containing your search 
>> term personal notes thus behaving similarly to a web search engine.
>>
>> Don't literally enter  file:///D:/TiddlyWiki.html#:[search[%s]]  into 
>> the address bar as it will show a javascript error instead, if you need to 
>> just type directly you should replace %s with an actual term like file:
>> ///D:/TiddlyWiki.html#:[search[my search terms]].
>>
>> So all you need to setup either book or a search engine in your browser 
>> pointing to your wiki file with a valid %s placeholder and a keyword.
>> Under Chrome* go to Settings > Search Engines > Manage Search Engines and 
>> specify a keyword and a 
>>
>>
>> <https://groups.google.com/group/tiddlywiki/attach/666ee7ae746cd/tiddlywiki_chrome_search.png?part=0.1&view=1&authuser=0>
>>
>> For Firefox alike go to the bookmark manager under the *Bookmark Menu > 
>> Show All*, and specify a keyword. You can also manage them for existing 
>> bookmarks from the right-clicking menu on any bookmark and accessing 
>> *Properties*.
>>
>>
>>
>> <https://groups.google.com/group/tiddlywiki/attach/666ee7ae746cd/tiddlywiki_firefox_search.png?part=0.2&view=1&authuser=0>
>>
>>
>>
>> Replace [search[%s]] with any valid TiddlyWiki Filter 
>> <https://tiddlywiki.com/#Filter%20Expression> you like to present 
>> relevant output for your needs.
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c3951c73-fc94-4c58-9b31-76a2264dca97n%40googlegroups.com.

Reply via email to