~hokiegeek/tw5-checklist

ref: ba38a3e9371e30f2b40f89e90ce9d199d00cb76a tw5-checklist/ShoppingList.tid -rw-r--r-- 896 bytes
ba38a3e9HokieGeek Ok, that was more work than I expected, but I have replicated the same functionality 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
created: 20181022112952159
creator: hokiegeek
modified: 20181024095522082
tag: shopping-list
tags: $:/tags/Macro
title: $:/plugins/hokiegeek/checklist/ShoppingList
type: text/vnd.tiddlywiki

\define shopping-list()
<$set name="list-tags" filter="[list[!!tags]]-[{$:/plugins/hokiegeek/checklist/ShoppingList/config/List/tag}]">
<$set name="item-tag" value="shopping-list-item">
</$set>
<$macrocall
    $name="list-tagged-draggable"
    subFilter="enlist<list-tags>tagging[]tag[shopping-list-item]!has[draft.of]!tag[done]"
    itemTemplate="$:/plugins/hokiegeek/checklist/ShoppingList/ItemTemplate"
    emptyMessage="You bought all the things!"/>

<$list filter="[enlist<list-tags>tagging[]!has[draft.of]tag[shopping-list-item]tag[done]sort[created]]">
<div>
<$checkbox tag="done"> ~~<$link to={{!!title}} class="item-done"><$view field="title"/></$link>~~</$checkbox>
</div>
</$list>
</$set>
\end