-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathImportList.tid
89 lines (84 loc) · 2.11 KB
/
ImportList.tid
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
caption: Import List
title: $:/plugins/TWederBob/ImportList
Most recently fetched tiddlers:
<$list
filter='[list[$:/state/TWederBob/importlist]]'
>
</$list>
These are tiddlers that currently are waiting to be imported:
<$list
filter='[prefix[$:/state/TWederBob/Import/]limit[1]]'
variable='dummy'
emptyMessage="''There are no tiddlers waiting for import, you can close this tiddler''"
>
<table
style='width:100%'
>
<$list
filter='[prefix[$:/state/TWederBob/Import/]]'
>
<tr>
<td>
<$list
filter='[<currentTiddler>removeprefix[$:/state/TWederBob/Import/]]'
>
<$view
field='title'
/>
</$list>
</td>
<td>
<$list
filter='[<currentTiddler>removeprefix[$:/state/TWederBob/Import/]has[title]]'
emptyMessage='No Local Version'
>
<$link>
<$link
to=<<currentTiddler>>
>
Local Version
</$link>
</$link>
</$list>
</td>
<td>
<$link
to=<<currentTiddler>>
>
Import Version
</$link>
</td>
<td>
<$button>
<$list
filter='[<currentTiddler>removeprefix[$:/state/TWederBob/Import/]has[title]]'
emptyMessage='Discard'
>
Keep original
</$list>
<$action-deletetiddler
$tiddler=<<currentTiddler>>
/>
</$button>
<$button>
Use imported
<$list
filter='[<currentTiddler>removeprefix[$:/state/TWederBob/Import/]]'
variable=NewTitle
>
<$action-setfield
$tiddler=<<currentTiddler>>
$field='title'
$value=<<NewTitle>>
$timestamp='no'
/>
<$action-deletetiddler
$tiddler=<<currentTiddler>>
/>
</$list>
</$button>
</td>
</tr>
</$list>
</table>
</$list>