Eric,
Nice.
I have tried to encourage myself to review tiddlers and record keywords
relating to the subject in a keywords field.
I modified your keywords variable as follows
keywords={{{ [<currentTiddler>] [{!!keywords}] +[addsuffix[+]] +[addsuffix{$
:/temp/google}] +[split[ ]join[+]] }}}
To include those keywords as well.
Its a great way to then reach out to the internet to research what the
title and keywords describe
Also the edit field provided can be used to restrict the search as well eg
-google-adds
Great stuff
Thanks
Tony
On Friday, June 5, 2020 at 11:18:57 AM UTC+10, Eric Shulman wrote:
>
> On Thursday, June 4, 2020 at 5:15:34 PM UTC-7, TonyM wrote:
>>
>> Once again inspired by you work, I recall that on
>> https://www.w3schools.com/ a search is "enhanced by Google" and the
>> results appear in a drop down.
>> I wonder if we could develop this for tiddlywiki?
>>
>
> Here's yet another version. This one skips the Google search input page,
> and goes directly to the search results.
> <$edit-text tiddler="$:/temp/google" tag="input" placeholder="enter search
> text" default="" />
> <$vars keywords={{{ [<currentTiddler>] +[addsuffix[+]]
> +[addsuffix{$:/temp/google}] +[split[ ]join[+]] }}}>
> <$vars URL={{{ [[https://www.google.com/search?q=]]
> +[addsuffix<keywords>] }}}>
> <$button message="tm-open-external-window" param=<<URL>>>
> {{$:/core/images/advanced-search-button}} </$button>
> </$vars>
> </$vars>
>
> Note that this version uses $vars widgets to construct the desired search
> keywords and the URL before opening the external window.
>
> This was not, strictly speaking, *necessary*, but was done to make the
> code more readable.
>
> enjoy,
> -e
>
--
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/bd88e768-ca31-412e-b1e6-e79bb1bcb9e5o%40googlegroups.com.