This version seems to work -- but it takes a different approach. It closes 
all tiddlers (except the one with the button) and then re-opens all the 
tiddlers that match the critieria. In the end, it closes itself (the button 
tiddler). I think attempting to close tiddlers in a <$list> causes problems 
because it means the $:/Storylist is changing right in the middle of an 
action. The results when I tried it that way were irregular.


<$button>PUSH 2
<$action-sendmessage $message="tm-close-other-tiddlers" />
<$list filter="[list[]tag[ReArrange]]">
<$action-navigate $to=<<currentTiddler>>/>
</$list> 
<$action-sendmessage $message="tm-close-tiddler" param=<<currentTiddler>> />
</$button>





On Wednesday, December 21, 2016 at 4:18:38 PM UTC-8, Jan wrote:
>
> Hej! 
> A question for a tool to reorder the Story which i called rearranger and 
> published on 
> http://slidesnstories.tiddlyspot.com/#About%20the%20Rearranger 
>
> Is there a trick to close all Tiddlers who do not have the tag ReArrange 
> (after resetting the storylist) in one button? 
>
> This here doe s not seem to work... 
>
> <$button set="$:/StoryList!!list" setTo={{!!list}}> 
> <$list filter="[list[$:/StoryList!!list]!tag[ReArrange]]"> 
> <$fieldmangler> 
> <$action-sendmessage $message="tm-close-tiddler"/> 
> </$fieldmangler> 
> </$list> 
> apply new order</$button> 
>
> Thanks a lot 
> Jan 
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/24d4e012-619e-4afb-9718-1c151c55b7d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to