@@ -16,6 +16,14 @@ TQ_extra_instructions: |-
1616
1717### ` task.outlinks ` : Task lines containing an outgoing link
1818
19+ ```` text
20+ ```tasks
21+ # Task line has a link
22+ filter by function task.outlinks.length > 0
23+ limit groups 1
24+ ```
25+ ````
26+
1927``` tasks
2028# Task line has a link
2129filter by function task.outlinks.length > 0
@@ -24,27 +32,54 @@ limit groups 1
2432
2533### ` task.file.outlinksInProperties ` : Tasks in files whose properties/frontmatter contains a link
2634
35+ ```` text
36+ ```tasks
37+ filter by function task.file.outlinksInProperties.length > 0
38+ limit groups 1
39+ ```
40+ ````
41+
2742``` tasks
2843filter by function task.file.outlinksInProperties.length > 0
2944limit groups 1
3045```
3146
3247### ` task.file.outlinksInBody ` : Tasks in files whose markdown body contains a link
3348
49+ ```` text
50+ ```tasks
51+ filter by function task.file.outlinksInBody.length > 0
52+ limit groups 1
53+ ```
54+ ````
55+
3456``` tasks
3557filter by function task.file.outlinksInBody.length > 0
3658limit groups 1
3759```
3860
3961### ` task.file.outlinks ` : Tasks in files whose file contains a link anywhere
4062
63+ ```` text
64+ ```tasks
65+ filter by function task.file.outlinks.length > 0
66+ limit groups 1
67+ ```
68+ ````
69+
4170``` tasks
4271filter by function task.file.outlinks.length > 0
4372limit groups 1
4473```
4574
4675### Task lines that contain broken links
4776
77+ ```` text
78+ ```tasks
79+ filter by function task.outlinks.some(link => link.destinationPath === null)
80+ ```
81+ ````
82+
4883``` tasks
4984filter by function task.outlinks.some(link => link.destinationPath === null)
5085```
@@ -55,6 +90,12 @@ filter by function task.outlinks.some(link => link.destinationPath === null)
5590
5691This should match one task, in [[ Link to Access links file]] .
5792
93+ ```` text
94+ ```tasks
95+ filter by function task.outlinks.some(link => link.destinationPath === query.file.path)
96+ ```
97+ ````
98+
5899``` tasks
59100filter by function task.outlinks.some(link => link.destinationPath === query.file.path)
60101```
@@ -65,12 +106,25 @@ This should match one task, in [[Link to Access links file]].
65106
66107There is a bug: this does not yet find the task it should do.
67108
109+ ```` text
110+ ```tasks
111+ filter by function task.outlinks.some(link => link.isLinkTo(query.file))
112+ ```
113+ ````
114+
68115``` tasks
69116filter by function task.outlinks.some(link => link.isLinkTo(query.file))
70117```
71118
72119#### Dataview version
73120
121+ ```` text
122+ ```dataview
123+ TASK
124+ WHERE contains(file.outlinks, this.file.link)
125+ ```
126+ ````
127+
74128``` dataview
75129TASK
76130WHERE contains(file.outlinks, this.file.link)
@@ -80,8 +134,14 @@ WHERE contains(file.outlinks, this.file.link)
80134
81135### Group by task outlinks
82136
137+ ```` text
138+ ```tasks
139+ filter by function task.outlinks.length > 0
140+ group by function task.outlinks.map(link => link.markdown).sort().join(' · ')
141+ ```
142+ ````
143+
83144``` tasks
84- # Task line has a link
85145filter by function task.outlinks.length > 0
86146group by function task.outlinks.map(link => link.markdown).sort().join(' · ')
87147```
@@ -90,6 +150,13 @@ group by function task.outlinks.map(link => link.markdown).sort().join(' · ')
90150
91151The value of ` link.destinationPath ` is null if the link is broken.
92152
153+ ```` text
154+ ```tasks
155+ filter by function task.outlinks.length > 0
156+ group by function task.outlinks.map(link => link.destinationPath).sort().join(' · ')
157+ ```
158+ ````
159+
93160``` tasks
94161filter by function task.outlinks.length > 0
95162group by function task.outlinks.map(link => link.destinationPath).sort().join(' · ')
0 commit comments