How putfirst and putlast work?

   - Assume you have a list in *uu *with value: *aa bb cc dd ee*
   - Then you want using a button move cc to first position or last position
   - how it can be done?


I used the below code it uses uu  as a tiddler with a list of above values 
but seems putlast does not work correctly!


\define mreorder()
<$tiddler tiddler={{{[[reorder]get[text]]}}}>
<span style="display:inline-block;min-width:120px;font-weight:700;"><$view 
tiddler=reorder field=text/></span>
<$button class="tc-btn-invisible">down
<$action-listops $tiddler="uu" $field="list" 
$subfilter="+[move<currentTiddler>]"/>
</$button>
&nbsp;
<$button class="tc-btn-invisible">up
<$action-listops $tiddler="uu" $field="list" 
$subfilter="+[move:-1<currentTiddler>]"/>
</$button>
&nbsp;
<$button class="tc-btn-invisible">putfirst
<$action-listops $tiddler="uu" $field="list" 
$subfilter="[<currentTiddler>]+[putfirst[]]"/>
</$button>
&nbsp;
<$button class="tc-btn-invisible">putlast
<$action-listops $tiddler="uu" $field="list" 
$subfilter="[<currentTiddler>]+[putlast[]]"/>
</$button>
</$tiddler>
\end


<<mreorder>>

<$list filter="[list[uu]]">
<$radio tiddler="reorder" field=text value=<<currentTiddler>>> <$view 
field=title/></$radio><br>
</$list>



Any suggestion?

--Mohammad

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/77def7b7-4136-468f-9163-1c2ee1b46786%40googlegroups.com.

Reply via email to