Skip to content

Commit ff3eae8

Browse files
committed
docs: - Add some missing placeholders to a Placeholders example
1 parent 0b3d148 commit ff3eae8

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docs/Queries/Explaining Queries.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,11 @@ For example, when the following query with [[Query Properties]] in [[Placeholder
241241
```text
242242
explain
243243
path includes {{query.file.path}}
244+
path includes {{query.file.pathWithoutExtension}}
244245
root includes {{query.file.root}}
245246
folder includes {{query.file.folder}}
246247
filename includes {{query.file.filename}}
248+
filename includes {{query.file.filenameWithoutExtension}}
247249
248250
description includes Some Cryptic String {{! Inline comments are removed before search }}
249251
```
@@ -258,6 +260,9 @@ Explanation of this Tasks code block query:
258260
path includes {{query.file.path}} =>
259261
path includes some/sample/file path.md
260262
263+
path includes {{query.file.pathWithoutExtension}} =>
264+
path includes some/sample/file path
265+
261266
root includes {{query.file.root}} =>
262267
root includes some/
263268
@@ -267,6 +272,9 @@ Explanation of this Tasks code block query:
267272
filename includes {{query.file.filename}} =>
268273
filename includes file path.md
269274
275+
filename includes {{query.file.filenameWithoutExtension}} =>
276+
filename includes file path
277+
270278
description includes Some Cryptic String {{! Inline comments are removed before search }} =>
271279
description includes Some Cryptic String
272280

docs/Scripting/Placeholders.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ For example, when the following query with [[Query Properties]] in [[Placeholder
2929
```text
3030
explain
3131
path includes {{query.file.path}}
32+
path includes {{query.file.pathWithoutExtension}}
3233
root includes {{query.file.root}}
3334
folder includes {{query.file.folder}}
3435
filename includes {{query.file.filename}}
36+
filename includes {{query.file.filenameWithoutExtension}}
3537
3638
description includes Some Cryptic String {{! Inline comments are removed before search }}
3739
```
@@ -46,6 +48,9 @@ Explanation of this Tasks code block query:
4648
path includes {{query.file.path}} =>
4749
path includes some/sample/file path.md
4850
51+
path includes {{query.file.pathWithoutExtension}} =>
52+
path includes some/sample/file path
53+
4954
root includes {{query.file.root}} =>
5055
root includes some/
5156
@@ -55,6 +60,9 @@ Explanation of this Tasks code block query:
5560
filename includes {{query.file.filename}} =>
5661
filename includes file path.md
5762
63+
filename includes {{query.file.filenameWithoutExtension}} =>
64+
filename includes file path
65+
5866
description includes Some Cryptic String {{! Inline comments are removed before search }} =>
5967
description includes Some Cryptic String
6068

0 commit comments

Comments
 (0)