[TW5] list-tagged-draggable not right behaviour. How to change?

119 views
Skip to first unread message

Siniy-Kit

unread,
Jul 1, 2017, 1:37:18 PM7/1/17
to TiddlyWiki
Hi! if we go to http://tiddlywiki.com/ and create new tiddler with  text


<<list-tagged-draggable tag:"Plugins">>


<
<list-tagged-draggable tag:"About">>

we get two draggable lists. And we can drag and drop items from one list to another.  
BUT we get copies in two lists. 

is it possible to change $:/core/macros/list to remove tag on start drop  and write it on finish, not to get copies in lists?
 

Siniy-Kit

unread,
Jul 2, 2017, 1:03:22 AM7/2/17
to tiddl...@googlegroups.com
Help!  If we add one line code to $:/core/macros/list  it works 
BUT if tiddler have more than one tag it remove it (((((




\define list-tagged-draggable-drop-actions()
<!-- Save the current ordering of the tiddlers with this tag -->
<$set name="order" filter="[<tag>tagging[]]">
<!-- Remove any list-after or list-before fields from the tiddlers with this tag -->
<$list filter="[<tag>tagging[]]">
<$action-deletefield $field="list-before"/>
<$action-deletefield $field="list-after"/>
</$list>
<$action-deletefield $tiddler=<<actionTiddler>> $field="tags"/>
<!-- Assign the list field of the tag with the current ordering -->
<$action-setfield $tiddler=<<tag>> $field="list" $value=<<order>>/>
<!-- Add the newly inserted item to the list -->
<$action-listops $tiddler=<<tag>> $field="list" $subfilter="+[insertbefore:currentTiddler<actionTiddler>]"/>
<!-- Make sure the newly added item has the right tag -->
<$action-listops $tiddler=<<actionTiddler>> $tags="[<tag>]"/>
</$set>
\end






суббота, 1 июля 2017 г., 20:37:18 UTC+3 пользователь Siniy-Kit написал:

PMario

unread,
Jul 2, 2017, 4:59:01 AM7/2/17
to TiddlyWiki
Hi,

http://tiddlywiki.com/#ActionListopsWidget may be an option. Have a closer look

-m

Siniy-Kit

unread,
Jul 2, 2017, 5:19:09 AM7/2/17
to tiddl...@googlegroups.com
Thank you Mario!
this variant works good

<$action-listops $tiddler=<<actionTiddler>> $field="tags" $filter="[is[current]tags[]]"/>

воскресенье, 2 июля 2017 г., 11:59:01 UTC+3 пользователь PMario написал:
Reply all
Reply to author
Forward
0 new messages