[TW5] Removing all state tiddlers

353 views
Skip to first unread message

Ulrik Stervbo

unread,
Jul 9, 2014, 5:12:43 AM7/9/14
to tiddl...@googlegroups.com
Hello List,

I am not sure, I want TiddlyWiki to remember the state of tabs and Hradek's slider between sessions. Is there a clever way of making TiddlyWiki forget states from session to session?

Also, I currently have some 200 state tiddlers, is there a clever way of deleting these?

Cheers,
Ulrik

Matabele

unread,
Jul 9, 2014, 5:55:06 AM7/9/14
to tiddl...@googlegroups.com
Hi

I think that this might be done by prefixing the state tiddlers you wish to be trashed with '$:/state/popup/' (popup state tiddlers are not saved.)

My preferred technique is to use a field of the currentTiddler to store states, especially for sliders -- this eliminates long lists of state tiddlers in the system tab (but preserves the state between refreshes.)

regards

Matabele

unread,
Jul 9, 2014, 6:10:09 AM7/9/14
to tiddl...@googlegroups.com
Hi

To delete a list of tiddlers that can be targeted with a filter -- try this:

<span title="Enter Filter Expression"><$edit-text tiddler="$:/temp/filter" field="filter"/></span>

<$list filter={{$:/temp/filter!!filter}}>

<$button message="tw-delete-tiddler" param={{!!title}} class="btn-invisible btn-mini">{{$:/core/images/delete-button}}</$button> {{!!title}}
</$list>

To clean state tiddlers, use the filter expression: [prefix[$:/state]]

regards

On Wednesday, July 9, 2014 11:12:43 AM UTC+2, Ulrik Stervbo wrote:

Ulrik Stervbo

unread,
Jul 9, 2014, 6:13:18 AM7/9/14
to tiddl...@googlegroups.com
Thank you Matabele! I will give both a go.

Can you help me a bit along with using a field of of the currentTiddler to store states?

Thanks
Ulrik


--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/I8YunVLvxvY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Matabele

unread,
Jul 9, 2014, 6:46:44 AM7/9/14
to tiddl...@googlegroups.com, ulrik....@gmail.com
Hi

In place of a text reference to the title of a tiddler such as "$:/state/mystate" -- use a text reference to a field i.e. "!!field-name". In this case a field in the currentTiddler will be targeted by default. Separate fields must be targeted for each slider, else they will open/close in sync.

It often pays to explicitly specify the title of the current tiddler in the text reference i.e. "TiddlerTitle!!field-name" -- this avoids possible conflicts in the case that the tiddler gets transcluded.

regards
Reply all
Reply to author
Forward
0 new messages