clearing out search field on reload

133 views
Skip to first unread message

Aidan Grey

unread,
Sep 23, 2019, 2:03:35 PM9/23/19
to TiddlyWiki
Hey all,

I can't find it, but a month or so ago, someone wanted to prevent their TW from loading with previous search criteria. The solution was simple:

<$action-setfield $tiddler="$:/temp/search" $value=""/>

My problem - I've moved the search to a new location, and it's all advanced all the time:

Tiddler: Search
Tagged:  $:/tags/SideBar

<div class="tc-advanced-search">
<<tabs "[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch]!has[draft.of]]" "$:/core/ui/AdvancedSearch/System">>
</div>


The question:

How do I set THAT search to be empty by default / at startup / after reload?



Ton Gerner

unread,
Sep 23, 2019, 3:12:18 PM9/23/19
to TiddlyWiki
Hi Aidan,

Advanced search uses $:/temp/advancedsearch

Cheers,

Ton

Aidan Grey

unread,
Sep 25, 2019, 12:41:23 PM9/25/19
to TiddlyWiki
You are the man, Ton! Thanks! I should have known it would be that simple...

Ste Wilson

unread,
Sep 28, 2019, 7:31:52 AM9/28/19
to TiddlyWiki
Ohhh. That's useful.
What tag do I need to get <$action-setfield $tiddler="$:/temp/search" $value=""/> working?

@TiddlyTweeter

unread,
Sep 28, 2019, 8:01:58 AM9/28/19
to TiddlyWiki
Interesting question though!

Persist "temp" between sessions?

Question
TT

@TiddlyTweeter

unread,
Sep 28, 2019, 8:03:56 AM9/28/19
to TiddlyWiki
Ste

You use the futurist Solid Zapper macro.

TT

Aidan Grey

unread,
Sep 28, 2019, 9:03:28 AM9/28/19
to tiddl...@googlegroups.com
$:/tags/StartupAction

On Sat, Sep 28, 2019, 5:32 AM Ste Wilson, <needco...@gmail.com> wrote:
Ohhh. That's useful.
What tag do I need to get <$action-setfield $tiddler="$:/temp/search" $value=""/> working?

--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0593ca9f-57b4-46c8-9af8-1cba7a95ee5c%40googlegroups.com.

@TiddlyTweeter

unread,
Sep 28, 2019, 9:24:51 AM9/28/19
to TiddlyWiki
Bingo!


On Saturday, 28 September 2019 15:03:28 UTC+2, Aidan Grey wrote:
$:/tags/StartupAction

On Sat, Sep 28, 2019, 5:32 AM Ste Wilson, <needco...@gmail.com> wrote:
Ohhh. That's useful.
What tag do I need to get <$action-setfield $tiddler="$:/temp/search" $value=""/> working?

--
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 tiddl...@googlegroups.com.

TonyM

unread,
Sep 28, 2019, 6:38:28 PM9/28/19
to TiddlyWiki
Fyi

The action on any button mechanisium I built could be used to trigger a set field action to clear the search field.

Another way is to adjust the save filter to never save the search tiddler.

Regards
Tony

@TiddlyTweeter

unread,
Sep 28, 2019, 6:49:25 PM9/28/19
to TiddlyWiki
TonyM 

Why not engaqge with the system already?

And help that on?

TT 

TonyM

unread,
Sep 28, 2019, 9:34:40 PM9/28/19
to TiddlyWiki
TT?

Sorry please clarify what you are saying

Thanks
Tony

Ste Wilson

unread,
Sep 29, 2019, 4:32:13 AM9/29/19
to TiddlyWiki
Cheers!
Reply all
Reply to author
Forward
0 new messages