link to a search phrase

97 views
Skip to first unread message

tobaisch

unread,
Dec 18, 2017, 6:13:30 PM12/18/17
to TiddlyWiki
hello,
is there a way for the following scenario:

I would like to start a standard search by clicking on a link.

sample text:

Lorem ipsum dolor sit amet, [search phrase] sadipscing elitr ...

If I click on search
phrase a search automatically begin for "search phrase"

THX
Regards Tom

Mark S.

unread,
Dec 18, 2017, 7:16:59 PM12/18/17
to TiddlyWiki

The one minute possibility and example (use in tiddler at tiddlywiki.com to see). Could use some improvement undoubtedly:

\define searchme(searchthis)
<$button popup="$:/SamplePopupState">$searchthis$</$button>
<$reveal type="popup" state="$:/
SamplePopupState">
<div class="
tc-drop-down">
<<list-links "
[search[$searchthis$]]">>
</div>
</$reveal>
\end

I am looking for <<searchme Editions>> to write about.

If you make the searchme macro global, then you can use <<searchme "Lorem">> wherever you want.

-- Mark

tobaisch

unread,
Dec 18, 2017, 8:29:44 PM12/18/17
to TiddlyWiki
thx Mark S..
the search should take place in the sidebar and the results of course too.
as if i would start a search in the search field of the sidebar but without typing the search phrase but only with one click on the link.
as you did, the results obscured the text.
but very good for a minute work.

Regards Tom

Mark S.

unread,
Dec 18, 2017, 10:01:48 PM12/18/17
to TiddlyWiki
\define searchme(searchthis)
<$button>$searchthis$
<$action-setfield $tiddler="$:/temp/search" text="$searchthis$"/>
</$button>

\end
I am looking
for <<searchme Editions>> to write about.

tobaisch

unread,
Dec 19, 2017, 6:41:28 AM12/19/17
to TiddlyWiki
great Mark S.
looks so simple. :)
works perfect
many thanks
regards
tom
Reply all
Reply to author
Forward
0 new messages