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/Queries/Presets.md
+21-2Lines changed: 21 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,11 +73,30 @@ Use the **[[Placeholders|placeholder]] syntax** (`{{preset.name}}`) when you nee
73
73
### See the Available Presets
74
74
75
75
- When the requested preset does not exist, Tasks writes out the list of available Presets, with their first line.
76
-
- So for a quick reminder, type `preset xxxxxxxx` or any other non-existent Preset name, then switch to Reading or Live Preview modes.
76
+
- So for a quick reminder, type `preset xxxx` or any other non-existent Preset name, then switch to Reading or Live Preview modes.
77
+
78
+
For example, with the [[#Default Presets|default settings]], using `preset xxxx` would show this in the Tasks search results:
79
+
80
+
<!-- placeholder to force blank line before included text --><!-- include: DocsForPresets.test.presets_help_message.approved.md -->
81
+
82
+
```text
83
+
Cannot find preset "xxxx" in the Tasks settings
84
+
The following presets are defined in the Tasks settings:
85
+
hide_date_fields : # Hide any values for all date fields...
86
+
hide_everything : # Hide everything except description and any tags...
87
+
hide_non_date_fields: # Hide all the non-date fields, but not tags...
88
+
hide_query_elements : # Hide postpone, edit and backinks...
89
+
this_file : path includes {{query.file.path}}
90
+
this_folder : folder includes {{query.file.folder}}
91
+
this_folder_only : filter by function task.file.folder === query.file...
92
+
this_root : root includes {{query.file.root}}
93
+
```
94
+
95
+
<!-- placeholder to force blank line after included text --><!-- endInclude -->
77
96
78
97
### Remembering what your Presets do
79
98
80
-
- For multi-line presets, you can put a descriptive [[Comments|comment]] on their first line (starting with a `#` character).
99
+
As the above example shows, for multi-line presets, it is worth adding a descriptive [[Comments|comment]] on their first line (starting with a `#` character), to remind you of their behaviour.
0 commit comments