Proposal: A refresh button

44 views
Skip to first unread message

Mohammad

unread,
Jul 12, 2019, 12:20:51 AM7/12/19
to TiddlyWiki
In Android you have apps or button to remove all junks, close unused apps, empty caches and like that!

What do you think if we have a button in TW control pannel to do like that i.e

- remove $:/temp
- remove $:/state
- remove (may be some other things ...)


to refresh TW.


Some ready tools


--Mohammad

Mohammad

unread,
Jul 12, 2019, 1:10:20 AM7/12/19
to TiddlyWiki
In TW-Scripts I have created a solution inspired by the great work by Mario as below

\define deleteButton()
<$button>
{{$:/core/images/delete-button}}
<$action-deletetiddler $tiddler=<<currentTiddler>>/>
</
$button> - <$link to=<<currentTiddler>> ><$text text=<<currentTiddler>> /></$link>
\end

!! Remove temporary tiddlers
Temporary tiddlers are `$:/temp` and `$:/state` and its good to be removed time by time to free occupied spaces.

<<<
Select tiddlers <$select field='status' tooltip='Choose a new site title'>
<option>[prefix[$:/temp/]]</option>
<option>[prefix[$:/state/]]</option>
</$select>

<$button>
<$action-deletetiddler $filter="[subfilter{!!status}]" /
>
Delete all: <b><$text text={{!!status}} /></b> tiddlers
</$button>

<$list filter="[subfilter{!!status}]">
<<deleteButton>><br>
</
$list>
<<<


Please let me know what other tiddlers should be included.

Nevertheless it should be mentioned that the Tiddler Commander has great facilities to do these kind of stuffs quite easily and efficiently.

--Mohammad
Reply all
Reply to author
Forward
0 new messages