You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Getting Started/About Getting Started.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,8 @@ publish: true
45
45
- Then adjust your searches, perhaps to see tasks that are [[Filters#Blocking Tasks|blocking others]], or hide ones that are [[Filters#Blocked Tasks|blocked]] and cannot yet be done.
46
46
-[[Obsidian Properties]]
47
47
- Learn how to use data in Obsidian [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) in your queries, for example to only search tasks in Kanban plugin files.
48
+
-[[Links]]
49
+
- Learn how to search for tasks based upon [Links between notes](https://help.obsidian.md/link-notes).
> Use of Links in searches was introduced in Tasks X.Y.Z.
9
+
10
+
> [!Tip]
11
+
> This documentation was written a little more quickly than usual, because to the need to release a fix for a bug in iOS and iPadOS versions [18.6](https://github.com/obsidian-tasks-group/obsidian-tasks/issues/3546) and [26 Public Beta 2](https://github.com/obsidian-tasks-group/obsidian-tasks/issues/3560).
12
+
>
13
+
> We plan to refine this page, based on user feedback after its initial release.
14
+
15
+
## How does Tasks treat Links?
16
+
17
+
You might want to start with the [[#Links Query Examples|examples below]] for an idea of *what* Tasks can do with Links.
18
+
19
+
This section describes the *how*...
20
+
21
+
- Links can be used in Tasks searches with the following instructions:
22
+
-`filter by function`
23
+
-`sort by function`
24
+
-`group by function`
25
+
- Links recognises these styles on links in your notes:
26
+
-`[[filename|optional alias]]`
27
+
-`[alias](filename.md)`
28
+
- Headings and nested headings in the links are also supported.
|`task.outlinks`|`Link[]`| Returns a list of links in the task's line.<br>It does not contain links in any nested tasks or list items. |
36
+
|`task.file.outlinksInProperties`|`Link[]`| Returns all the links in the task file's [[Obsidian Properties]]. |
37
+
|`task.file.outlinksInBody`|`Link[]`| Returns all the links in the body of the note containing the task.<br>Naturally, this includes any links on the task line itself. |
38
+
|`task.file.outlinks`|`Link[]`| Returns all the links anywhere in the task's file.<br>It contains all the links in `task.file.outlinksInProperties` and `task.file.outlinksInBody`. |
39
+
|**`query`**|||
40
+
|`query.file.outlinksInProperties`|`Link[]`| Returns all the links in the query file's [[Obsidian Properties]]. |
41
+
|`query.file.outlinksInBody`|`Link[]`| Returns all the links in the body of the note containing the query. |
42
+
|`query.file.outlinks`|`Link[]`| Returns all the links anywhere in the query's file.<br>It contains all the links in `query.file.outlinksInProperties` and `query.file.outlinksInBody`|
43
+
44
+
The return values are all arrays of `Link` objects.
45
+
46
+
## Link class
47
+
48
+
> [!NOTE] Documentation coming soon
49
+
> Documentation coming soon. In the meantime, you can see the comments in [Link.ts](https://github.com/obsidian-tasks-group/obsidian-tasks/blob/main/src/Task/Link.ts) on GitHub.
50
+
51
+
## Links Query Examples
52
+
53
+
> [!NOTE] Documentation coming soon
54
+
> In the meantime, you can see some examples in [Accessing Links](https://github.com/obsidian-tasks-group/obsidian-tasks/blob/main/resources/sample_vaults/Tasks-Demo/How%20To/Access%20links.md) on GitHub.
55
+
56
+
## Limitations of Links Handling and Searches
57
+
58
+
- Currently, searching of links is only possible via [[About Scripting|custom searches]].
59
+
- Tasks does not yet treat [Embeds](https://help.obsidian.md/embeds) as links. This will be fixed soon.
60
+
- Tasks does not yet provide an `inlinks` concept, that is, links *to* a particular file.
61
+
-`Link.destinationPath` is calculated when the file containing the task is read.
62
+
- This will either have been during Obsidian startup, or when the file was last modified during the current session.
63
+
- For performance reasons, if files are moved to different folders during an Obsidian session, any tasks that link to the moved files are not updated.
64
+
- The workaround is to run the built-in `Reload app without saving` command.
Copy file name to clipboardExpand all lines: docs/Quick Reference.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,7 @@ This table summarizes the filters and other options available inside a `tasks` b
50
50
|**[[Filters#Description\|Description]]**, **[[Filters#Tags\|Tags]]** and other odds and ends |||||
51
51
|`description (includes, does not include) <string>`<br>`description (regex matches, regex does not match) /regex/i`|`sort by description`|||`task.description`<br>`task.descriptionWithoutTags`|
52
52
|`has tags`<br>`no tags`<br>`tag (includes, does not include) <tag>`<br>`tags (include, do not include) <tag>`<br>`tag (regex matches, regex does not match) /regex/i`<br>`tags (regex matches, regex does not match) /regex/i`|`sort by tag`<br>`sort by tag <tag_number>`|`group by tags`|`hide tags`|`task.tags`|
<!-- placeholder to force blank line after included text --><!-- endInclude -->
256
+
257
+
1. These all return an array of `Link` objects.
258
+
1. The table above shows the result of `link.destinationPath`
259
+
1.`task.outlinks` contains any links in the task description.
260
+
- It does not contain links in any nested tasks or list items.
261
+
1.`task.file.outlinksInProperties` returns all the links in the task file's [[Obsidian Properties]].
262
+
1.`task.file.outlinksInBody` returns all the links in the body of the note containing the task. Naturally, this includes any links on the task line itself.
263
+
1.`task.file.outlinks` returns all this links in both [[Obsidian Properties]] and the body of the note containing the task.
0 commit comments