Hi all,
I'm trying to do some drag n' drop nonsense and I'd like to be able to drag a list item and put it at the very end of the list. This is the macro I've got:
\define drop-at-end()
<$action-listops $tiddler="$:/StoryList" $subfilter="+[remove<actionTiddler>]"/>
<$action-listops $tiddler="$:/StoryList" $subfilter="+[append<actionTiddler>]"/>
\end
This works great if the actionTiddler has no whitespace in it (something like "NewTiddler"). But if it is something like "New Tiddler", then this code will add "New" and "Tiddler" to the end of the list. This seems to be because both remove and append take lists as input.
I've tried to find a way to add [[...]] to the variable, but without success. And I haven't had a whole lot of success understanding the wikitext documentation. Sometimes I see syntax like {{{...}}} or $...$ or "..." or even stranger stuff. But I can't figure out what these kinds of syntax do? Could someone explain these things to me? Or point me to some documentation that will explain them?
Best wishes,
Adam