Skip to content

Commit fae7f4d

Browse files
committed
vault: Show each task query as a text block
To make it clearer what is going on
1 parent 0a63db2 commit fae7f4d

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

resources/sample_vaults/Tasks-Demo/How To/Reuse instructions across the vault.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ explain: `INPUT[toggle:TQ_explain]`
1717

1818
(assuming there is not one called `xxxx`!)
1919

20+
````text
21+
```tasks
22+
include xxxx
23+
```
24+
````
25+
2026
```tasks
2127
include xxxx
2228
```
@@ -25,13 +31,25 @@ include xxxx
2531

2632
explain: `INPUT[toggle:TQ_explain]`
2733

34+
````text
35+
```tasks
36+
```
37+
````
38+
2839
```tasks
2940
```
3041

3142
## Hide all the fields
3243

3344
explain: `INPUT[toggle:TQ_explain]`
3445

46+
````text
47+
```tasks
48+
include hide_all_dates
49+
include hide_other_fields
50+
```
51+
````
52+
3553
```tasks
3654
include hide_all_dates
3755
include hide_other_fields
@@ -41,6 +59,12 @@ include hide_other_fields
4159

4260
explain: `INPUT[toggle:TQ_explain]`
4361

62+
````text
63+
```tasks
64+
include hide_buttons
65+
```
66+
````
67+
4468
```tasks
4569
include hide_buttons
4670
```
@@ -49,6 +73,12 @@ include hide_buttons
4973

5074
explain: `INPUT[toggle:TQ_explain]`
5175

76+
````text
77+
```tasks
78+
include just_the_description_and_tags
79+
```
80+
````
81+
5282
```tasks
5383
include just_the_description_and_tags
5484
```
@@ -59,6 +89,15 @@ include just_the_description_and_tags
5989

6090
explain: `INPUT[toggle:TQ_explain]`
6191

92+
````text
93+
```tasks
94+
# For debug/explanatory purposes, show the source of the Include as a group name:
95+
group by function const x = "{{includes.filter_by_context}}"; return x
96+
97+
{{includes.filter_by_context}}('home')
98+
```
99+
````
100+
62101
```tasks
63102
# For debug/explanatory purposes, show the source of the Include as a group name:
64103
group by function const x = "{{includes.filter_by_context}}"; return x
@@ -70,6 +109,16 @@ group by function const x = "{{includes.filter_by_context}}"; return x
70109

71110
explain: `INPUT[toggle:TQ_explain]`
72111

112+
````text
113+
```tasks
114+
# For debug/explanatory purposes, show the source of the Include as a group name:
115+
group by function const x = "{{includes.extract_contexts_1}}"; return x
116+
117+
# includes.extract_contexts_1 value needs to be surrounded by parentheses ():
118+
filter by function return ({{includes.extract_contexts_1}})('home')
119+
```
120+
````
121+
73122
```tasks
74123
# For debug/explanatory purposes, show the source of the Include as a group name:
75124
group by function const x = "{{includes.extract_contexts_1}}"; return x
@@ -82,6 +131,16 @@ filter by function return ({{includes.extract_contexts_1}})('home')
82131

83132
explain: `INPUT[toggle:TQ_explain]`
84133

134+
````text
135+
```tasks
136+
# For debug/explanatory purposes, show the source of the Include as a group name:
137+
group by function const x = "{{includes.extract_contexts_2}}"; return x
138+
139+
# includes.extract_contexts_1 value has the parentheses, to simplify use:
140+
filter by function {{includes.extract_contexts_2}}('home')
141+
```
142+
````
143+
85144
```tasks
86145
# For debug/explanatory purposes, show the source of the Include as a group name:
87146
group by function const x = "{{includes.extract_contexts_2}}"; return x

0 commit comments

Comments
 (0)