Skip to content

Commit c34b33d

Browse files
committed
vault: Make the global query ignore Theme and Snippet sample tasks
1 parent 8ceaa36 commit c34b33d

File tree

10 files changed

+37
-10
lines changed

10 files changed

+37
-10
lines changed

resources/sample_vaults/Tasks-Demo/.obsidian/plugins/obsidian-tasks-plugin/data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"globalQuery": "",
2+
"globalQuery": "# Exclude templates files:\nroot does not include _meta\n\n# Ignore the sample tasks that demonstrate Theme and Snippet support:\npath does not include Manual Testing/SlrVb's Alternative Checkboxes\npath does not include Styling/Snippet -\npath does not include Styling/Theme -\n",
33
"globalFilter": "#task",
44
"removeGlobalFilter": true,
55
"taskFormat": "tasksPluginEmoji",

resources/sample_vaults/Tasks-Demo/Manual Testing/SlrVb's Alternative Checkboxes.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ Available task states, as of version `7cb837d73d3f39e056d0be8c98539577529c0f90`
6969
## Rendered in Tasks results block
7070

7171
```tasks
72-
path includes SlrVb's Alternative Checkboxes
72+
# We need to ignore the global query, as it ignores this file:
73+
ignore global query
74+
75+
path includes {{query.file.path}}
7376
group by filename
7477
short mode
7578
group by status

resources/sample_vaults/Tasks-Demo/Styling/Snippet - SlRvb's Alternate Checkboxes.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ File name of downloaded snippet: S - Checkboxes.css
5555
## Status grouped by status.type
5656

5757
```tasks
58-
path includes Snippet - SlRvb's Alternate Checkboxes
58+
# We need to ignore the global query, as it ignores this file:
59+
ignore global query
60+
61+
path includes {{query.file.path}}
5962
group by status.type
6063
sort by description
6164
```

resources/sample_vaults/Tasks-Demo/Styling/Theme - AnuPpuccin.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@
3838
## Status grouped by status.type
3939

4040
```tasks
41-
path includes Theme - AnuPpuccin
41+
# We need to ignore the global query, as it ignores this file:
42+
ignore global query
43+
44+
path includes {{query.file.path}}
4245
group by status.type
4346
sort by description
4447
```

resources/sample_vaults/Tasks-Demo/Styling/Theme - Aura.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929
## Status grouped by status.type
3030

3131
```tasks
32-
path includes Theme - Aura
32+
# We need to ignore the global query, as it ignores this file:
33+
ignore global query
34+
35+
path includes {{query.file.path}}
3336
group by status.type
3437
sort by description
3538
```

resources/sample_vaults/Tasks-Demo/Styling/Theme - Ebullientworks.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
## Status grouped by status.type
1919

2020
```tasks
21-
path includes Theme - Ebullientworks
21+
# We need to ignore the global query, as it ignores this file:
22+
ignore global query
23+
24+
path includes {{query.file.path}}
2225
group by status.type
2326
sort by description
2427
```

resources/sample_vaults/Tasks-Demo/Styling/Theme - ITS Theme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ This offers the same checkboxes as [[Snippet - SlRvb's Alternate Checkboxes]].
4949
## Status grouped by status.type
5050

5151
```tasks
52-
path includes Theme - ITS Theme
52+
# We need to ignore the global query, as it ignores this file:
53+
ignore global query
54+
55+
path includes {{query.file.path}}
5356
group by status.type
5457
sort by description
5558
```

resources/sample_vaults/Tasks-Demo/Styling/Theme - LYT Mode.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ Only supports Dark mode.
3636
## Status grouped by status.type
3737

3838
```tasks
39-
path includes Theme - LYT Mode
39+
# We need to ignore the global query, as it ignores this file:
40+
ignore global query
41+
42+
path includes {{query.file.path}}
4043
group by status.type
4144
sort by description
4245
```

resources/sample_vaults/Tasks-Demo/Styling/Theme - Minimal Theme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ Available checkbox icons: <https://minimal.guide/Block+types/Checklists>
3434
## Status grouped by status.type
3535

3636
```tasks
37-
path includes Theme - Minimal Theme
37+
# We need to ignore the global query, as it ignores this file:
38+
ignore global query
39+
40+
path includes {{query.file.path}}
3841
group by status.type
3942
sort by description
4043
```

resources/sample_vaults/Tasks-Demo/Styling/Theme - Things Theme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ Available checkbox icons:
3434
## Status grouped by status.type
3535

3636
```tasks
37-
path includes Theme - Things Theme
37+
# We need to ignore the global query, as it ignores this file:
38+
ignore global query
39+
40+
path includes {{query.file.path}}
3841
group by status.type
3942
sort by description
4043
```

0 commit comments

Comments
 (0)