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
@@ -28,6 +36,8 @@ group by function require('/Tasks.js').parentDescription(task)
28
36
limit 1
29
37
```
30
38
39
+
### Searches usually work if this file is loaded in Reading mode during startup, and Tasks has been patched
40
+
31
41
```tasks
32
42
group by function Tasks.parentDescription(task)
33
43
limit 1
@@ -37,3 +47,38 @@ limit 1
37
47
group by function TasksNew.parentDescription(task)
38
48
limit 1
39
49
```
50
+
51
+
These did not initially work if this file is loaded in Reading mode during startup - because they depend on `Tasks` and `TasksNew` being initialised by the "CodeScript Toolkit" [startup script](https://github.com/mnaoumov/obsidian-codescript-toolkit?tab=readme-ov-file#startup-script), which is not always true if this code block is loaded in Reading mode during startup.
52
+
53
+
By use of [onLayoutReady()](https://docs.obsidian.md/Reference/TypeScript+API/Workspace/onLayoutReady) in Tasks main, it made this code even during startup...
0 commit comments