Skip to content

Commit

Permalink
docs: Convert custom filter samples from placeholders to query proper…
Browse files Browse the repository at this point in the history
…ties
  • Loading branch information
claremacrae committed Oct 29, 2023
1 parent 4b11955 commit 5ba5c6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions docs/Queries/Filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -1235,14 +1235,13 @@ filter by function task.file.folder.includes("Work/Projects/")
- Find tasks in files in a specific folder **and any sub-folders**.

```javascript
filter by function task.file.folder.includes( '{{query.file.folder}}' )
filter by function task.file.folder.includes( query.file.folder )
```

- Find tasks in files in the folder that contains the query **and any sub-folders**.
- Note that the placeholder text is expanded to a raw string, so needs to be inside quotes.

```javascript
filter by function task.file.folder === '{{query.file.folder}}'
filter by function task.file.folder === query.file.folder
```

- Find tasks in files in the folder that contains the query only (**not tasks in any sub-folders**).
Expand Down
5 changes: 2 additions & 3 deletions docs/Scripting/Custom Filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,13 @@ filter by function task.file.folder.includes("Work/Projects/")
- Find tasks in files in a specific folder **and any sub-folders**.

```javascript
filter by function task.file.folder.includes( '{{query.file.folder}}' )
filter by function task.file.folder.includes( query.file.folder )
```

- Find tasks in files in the folder that contains the query **and any sub-folders**.
- Note that the placeholder text is expanded to a raw string, so needs to be inside quotes.

```javascript
filter by function task.file.folder === '{{query.file.folder}}'
filter by function task.file.folder === query.file.folder
```

- Find tasks in files in the folder that contains the query only (**not tasks in any sub-folders**).
Expand Down

0 comments on commit 5ba5c6b

Please sign in to comment.