Skip to content

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

Compare
Choose a tag to compare
@github-actions github-actions released this 12 Sep 09:20

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):