github obsidian-tasks-group/obsidian-tasks 4.7.0
4.7.0: Use Query file path, folder, root and name in queries directly

latest releases: 7.13.0, 7.12.3, 7.12.2...
14 months ago

What's Changed

Please restart Obsidian after updating the plugin. Thank you.

🌟 Use Query file path, folder, root and name in queries directly 🌟

  • support placeholders like {{query.file.path}} in queries by @claremacrae and @ilandikov in #2254
    • no more need to use dataview to access query file information
  • examples:
    • folder includes {{query.file.folder}}
      • Find tasks in files in the folder that contains the query and any sub-folders.
    • 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.
    • 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).
  • docs:

Other changes

🛠️ Behind the scenes

Full Changelog (including changes too small to note above, and that do not affect the behaviour of the plugin itself):

Don't miss a new obsidian-tasks release

NewReleases is sending notifications on new releases.