Skip to content

Commit d7b4c93

Browse files
committed
vault: Add some more examples comparing Tasks & Dataview results rendering
1 parent 605df76 commit d7b4c93

File tree

3 files changed

+119
-14
lines changed

3 files changed

+119
-14
lines changed

resources/sample_vaults/Tasks-Demo/Other Plugins/Dataview/Parent-Child relationships - Searches - Dataview.md

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,46 @@
11
# Parent-Child relationships - Searches - Dataview
22

3-
## 1 Completed
3+
## 1 Simple lists
4+
5+
## 2 Filtering
6+
7+
### 2.1 Completed
8+
9+
```dataview
10+
TASK
11+
FROM "Other Plugins/Dataview/Parent-Child relationships - Tasks"
12+
WHERE completed
13+
```
14+
15+
### 2.2 Fully completed
16+
17+
```dataview
18+
TASK
19+
FROM "Other Plugins/Dataview/Parent-Child relationships - Tasks"
20+
WHERE fullyCompleted
21+
```
22+
23+
### 2.3 Not completed
24+
25+
```dataview
26+
TASK
27+
FROM "Other Plugins/Dataview/Parent-Child relationships - Tasks"
28+
WHERE !completed
29+
```
30+
31+
### 2.4 Not fully completed
32+
33+
```dataview
34+
TASK
35+
FROM "Other Plugins/Dataview/Parent-Child relationships - Tasks"
36+
WHERE !fullyCompleted
37+
```
38+
39+
## 3 Sorting
40+
41+
## 4 Grouping
42+
43+
### 4.1 Completed
444

545
```dataview
646
TASK
@@ -9,7 +49,7 @@ WHERE completed
949
GROUP BY meta(section).subpath
1050
```
1151

12-
## 2 Fully completed
52+
### 4.2 Fully completed
1353

1454
```dataview
1555
TASK
@@ -18,7 +58,7 @@ WHERE fullyCompleted
1858
GROUP BY meta(section).subpath
1959
```
2060

21-
## 3 Not completed
61+
### 4.3 Not completed
2262

2363
```dataview
2464
TASK
@@ -27,7 +67,7 @@ WHERE !completed
2767
GROUP BY meta(section).subpath
2868
```
2969

30-
## 4 Not fully completed
70+
### 4.4 Not fully completed
3171

3272
```dataview
3373
TASK

resources/sample_vaults/Tasks-Demo/Other Plugins/Dataview/Parent-Child relationships - Searches - Tasks.md

Lines changed: 54 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,52 @@
11
# Parent-Child relationships - Searches - Tasks
22

3-
## 1 Completed
3+
## 1 Simple lists
4+
5+
## 2 Filtering
6+
7+
### 2.1 Completed
8+
9+
```tasks
10+
folder includes {{query.file.folder}}
11+
done
12+
hide backlinks
13+
```
14+
15+
### 2.2 Fully completed
16+
17+
==Not Implemented==
18+
19+
```tasks
20+
folder includes {{query.file.folder}}
21+
# There is no Tasks instruction for "fully done" yet
22+
done
23+
hide backlinks
24+
```
25+
26+
### 2.3 Not completed
27+
28+
```tasks
29+
folder includes {{query.file.folder}}
30+
not done
31+
hide backlinks
32+
```
33+
34+
### 2.4 Not fully completed
35+
36+
==Not Implemented==
37+
38+
```tasks
39+
folder includes {{query.file.folder}}
40+
# There is no Tasks instruction for "not fully done" yet
41+
not done
42+
hide backlinks
43+
```
44+
45+
## 3 Sorting
46+
47+
## 4 Grouping
48+
49+
### 4.1 Completed
450

551
```tasks
652
folder includes {{query.file.folder}}
@@ -9,7 +55,9 @@ group by heading
955
hide backlinks
1056
```
1157

12-
## 2 Fully completed
58+
### 4.2 Fully completed
59+
60+
==Not Implemented==
1361

1462
```tasks
1563
folder includes {{query.file.folder}}
@@ -19,7 +67,7 @@ group by heading
1967
hide backlinks
2068
```
2169

22-
## 3 Not completed
70+
### 4.3 Not completed
2371

2472
```tasks
2573
folder includes {{query.file.folder}}
@@ -28,7 +76,9 @@ group by heading
2876
hide backlinks
2977
```
3078

31-
## 4 Not fully completed
79+
### 4.4 Not fully completed
80+
81+
==Not Implemented==
3282

3383
```tasks
3484
folder includes {{query.file.folder}}

resources/sample_vaults/Tasks-Demo/Other Plugins/Dataview/Parent-Child relationships - Searches.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,24 @@
44

55
Purpose: Compare the behaviour of similar Dataview and Tasks plugins, to aid in implementing Parent-Child relationships in the Tasks plugin.
66

7-
| Dataview | Tasks |
8-
| --------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
9-
| ![[Parent-Child relationships - Searches - Dataview#1 Completed]] | ![[Parent-Child relationships - Searches - Tasks#1 Completed]] |
10-
| ![[Parent-Child relationships - Searches - Dataview#2 Fully completed]] | ![[Parent-Child relationships - Searches - Tasks#2 Fully completed]] |
11-
| ![[Parent-Child relationships - Searches - Dataview#3 Not completed]] | ![[Parent-Child relationships - Searches - Tasks#3 Not completed]] |
12-
| ![[Parent-Child relationships - Searches - Dataview#4 Not fully completed]] | ![[Parent-Child relationships - Searches - Tasks#4 Not fully completed]] |
7+
## 1 Simple lists
8+
9+
## 2 Filtering
10+
11+
| Dataview | Tasks |
12+
| ----------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
13+
| ![[Parent-Child relationships - Searches - Dataview#2.1 Completed]] | ![[Parent-Child relationships - Searches - Tasks#2.1 Completed]] |
14+
| ![[Parent-Child relationships - Searches - Dataview#2.2 Fully completed]] | ![[Parent-Child relationships - Searches - Tasks#2.2 Fully completed]] |
15+
| ![[Parent-Child relationships - Searches - Dataview#2.3 Not completed]] | ![[Parent-Child relationships - Searches - Tasks#2.3 Not completed]] |
16+
| ![[Parent-Child relationships - Searches - Dataview#2.4 Not fully completed]] | ![[Parent-Child relationships - Searches - Tasks#2.4 Not fully completed]] |
17+
18+
## 3 Sorting
19+
20+
## 4 Grouping
21+
22+
| Dataview | Tasks |
23+
| ----------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
24+
| ![[Parent-Child relationships - Searches - Dataview#4.1 Completed]] | ![[Parent-Child relationships - Searches - Tasks#4.1 Completed]] |
25+
| ![[Parent-Child relationships - Searches - Dataview#4.2 Fully completed]] | ![[Parent-Child relationships - Searches - Tasks#4.2 Fully completed]] |
26+
| ![[Parent-Child relationships - Searches - Dataview#4.3 Not completed]] | ![[Parent-Child relationships - Searches - Tasks#4.3 Not completed]] |
27+
| ![[Parent-Child relationships - Searches - Dataview#4.4 Not fully completed]] | ![[Parent-Child relationships - Searches - Tasks#4.4 Not fully completed]] |

0 commit comments

Comments
 (0)