Skip to content

Releases: obsidian-tasks-group/obsidian-tasks

5.2.0: Query instructions can now contain capital letters

27 Nov 22:34
Compare
Choose a tag to compare

Please quit and restart Obsidian after updating the plugin. Thank you.

What's Changed

Most query instructions can now contain capital letters. Thank you @vdusart.

For example:

    ```tasks
    not done
    due AFTER yesterday
    due BEFORE in two weeks
    ```

Details: Capitals in Query Instructions - Case Insensitivity

  • feat: Add support for case-insensitive queries by @vdusart in #2418
  • refactor,docs: Refactor code & document case-insensitive queries by @claremacrae in #2450
  • docs: Add missing EOL to template file by @github-actions in #2451

New Contributors

Full Changelog: 5.1.1...5.2.0

πŸ™ Support Tasks development

5.1.1: Fix Live Preview's jumping to a task from a Tasks query block inside a callout

24 Nov 08:33
Compare
Choose a tag to compare

What's Changed

Please quit and restart Obsidian after updating the plugin. Thank you.

πŸ’ͺ Fixes

Jumping to a task from a Tasks query block inside a callout does now works properly in Live Preview.

  • fix: Prevent default click behavior when jumping to a task by @Cito in #2446

πŸ“– Documentation

πŸ› οΈ Dependencies

πŸ› οΈ Behind the scenes

  • chore: Add comments to find locations for common edits by @claremacrae in #2437
  • refactor: extract data and behaviour of layout parameters by @ilandikov in #2403
  • refactor: move to FieldLayoutDetail and linline 2 functions by @ilandikov in #2408
  • refactor: add a container for FieldLayoutDetails and get data attributes from it by @ilandikov in #2425
  • refactor: create TaskLineRenderer class by @ilandikov in #2433
  • refactor: simplify TaskLineRenderer by @ilandikov in #2434
  • refactor: create TaskFieldRenderer.ts by @ilandikov in #2436
  • refactor: improve rendering code quality by @ilandikov in #2439
  • refactor: Rename symbols in TaskFieldRenderer by @ilandikov in #2440
  • refactor: add data attributes in TaskFieldRenderer instead of returning them by @ilandikov in #2442
  • vault: Add Templates to create tasks with range of dates, for testing. by @claremacrae in #2413

New Contributors

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

πŸ™ Support Tasks development

5.1.0: query.file.path & friends in custom searches; Check your Custom Statuses!

09 Nov 22:27
Compare
Choose a tag to compare

What's Changed

🌟 Most Notable

Please restart Obsidian after updating the plugin. Thank you.

Main changes

Here are the most notable user-visible changes.

πŸŽ‰ Custom filters and groups can access query.file.path and friends directly

They no longer need {{ and }} placeholders and quotes.

For example:

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

πŸŽ‰ Check and visualise your Custom Statuses

  • Using the 'Review and check your Statuses' button in Tasks' Status Settings.
  • See page Check your Statuses

For example:

image

The commits:

  • feat: Custom grouping accesses Query Properties directly, without Placeholders by @claremacrae in #2377
  • feat: Custom filters access Query Properties directly, without Placeholders by @claremacrae in #2378
  • feat: Enable visualisation of the Status settings by @claremacrae in #2383
  • feat: Statuses report now shows a Status Settings table by @claremacrae in #2385
  • feat: Enable logging configuration by @claremacrae in #2393 - thanks to @sytone for the initial code for this
  • feat: Add optional debug logging of searches and file handling by @claremacrae in #2397
  • feat: "Review and check your Statuses" now shows any problems by @claremacrae in #2399
  • feat: Colour-code the Mermaid status diagrams for readability by @claremacrae in #2400

πŸ’ͺ Fixes

πŸ“– Documentation

  • docs: Update docs for 'filter by function' accessing query properties by @claremacrae in dfe0b99
  • docs: Fix typo in grouping.md (filenameWithoutExtension) by @andrewmwhite in #2369
  • docs: Document 'Review and check your Statuses' report by @claremacrae in #2406
  • contrib: Try improving the 'Local development.md' formatting. by @claremacrae in 4c58280
  • contrib: Cross-link between 'Local development.md' and 'Setting up build environment.md' by @claremacrae in b637e34
  • vault: Remove the 'ASCII Tasks Table' from the Tasks-Demo vault by @claremacrae in 54e6bfd

πŸ› οΈ Behind the scenes

New Contributors

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

πŸ™ Support Tasks development

5.0.0: Split long query lines; inline comments; detect unexpanded template text

21 Oct 18:55
Compare
Choose a tag to compare

What's Changed

🌟 Most Notable

Please restart Obsidian after updating the plugin. Thank you.

⚠️ Important The meaning of a final backslash (\) at the end of a line in a Tasks code block has changed.

If your vault has any lines in Task blocks that end in \ please make the following kind of change:

Old instruction Use this instruction instead
description includes something\ description includes something\\

Main changes

Here are the most notable user-visible changes.

πŸŽ‰ Long query lines can now be split with backslashes by @sbliven in #2330

  • See page Line Continuations
  • Here is a before-and-after example image from the documentation (which now uses syntax-highlighting in some examples, for readability):

    image

πŸŽ‰ Publicise inline comments mechanism by @sbliven in #2330

πŸŽ‰ Prevent misleading date searches with template text by @claremacrae in #2331

  • All the built-in date searches now refuse to run if they detect any unexpanded template text in the filter.
  • This resolves a notable source of confusion seen in Support queries.
  • See section Troubleshooting Daily Agenda queries.

πŸ’ͺ Fixes


πŸ“– Documentation

πŸ“– New pages:

πŸ“– New sections:

The changes...


πŸ› οΈ Behind the scenes


New Contributors

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

πŸ™ Support Tasks development

4.9.0: Four powerful new 'group by function' options

03 Oct 20:04
Compare
Choose a tag to compare

What's Changed

Example new instructions:

group by function task.priorityNameGroupText + ': ' + task.status.typeGroupText

image

group by function task.due.fromNow.groupText

image

group by function task.due.category.groupText

image

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

πŸ™ Support Tasks development

4.8.1: Fix crash at startup on first install - or if settings never before edited

27 Sep 01:10
Compare
Choose a tag to compare

What's Changed

  • fix: Prevent crash at startup if user never previously edited settings by @claremacrae in #2303

Full Changelog: 4.8.0...4.8.1

4.8.0: See total task counts, 'group by backlink' now hyperlinks and easier scripting access to paths and filenames

26 Sep 20:18
Compare
Choose a tag to compare

What's Changed

🌟 Most Notable

Dependencies have been updated. Please restart Obsidian after updating the plugin. Thank you.

  • Added more query file properties
  • Added more task file properties
  • Add hyperlink to group by backlink headings (thanks, @ilandikov)
    • As well as jumping to the relevant heading, it also shows a hover preview of the section containing the task(s)
  • Add total task count to show task count display
    • If a limit instruction means not all matching tasks are shown, the total tasks count is shown, such as 50 of 686 tasks.
    • This is useful when combined with limit 0 if you just want to see how many tasks match your query.
    • docs: Limiting

Main changes

Here are the most notable user-visible changes, and the more significant internal ones.

🌟 Features

  • feat: Scripting enables removing file extension from path and filename properties by @claremacrae in #2288
  • feat: group by backlink headings link to location & show hover previews by @ilandikov in #2285
  • feat: show task count now shows total, if 'limit' applied by @claremacrae in #2301

πŸ› οΈ Dependencies

πŸ› οΈ Behind the scenes

  • chore: Fix error TS5055: Cannot write file ...tests/global-setup.js by @claremacrae in #2277
  • chore: automate detection of circular code dependencies by @claremacrae in #2295
  • chore: Specify supported node versions in package.json by @axelson in #2065
  • refactor: Introduce GlobalQuery class: the plugin uses a singleton. by @ilandikov in #2215
  • refactor: Remove recently-added cyclic dependencies. by @claremacrae in #2279
  • refactor: Separate settings out of GlobalFilter by @claremacrae in #2282
  • refactor: remove unused return value in createTasksList() by @ilandikov in #2280
  • refactor: Add getInstance() to GlobalFilter & make all else non-static by @claremacrae in #2283
  • refactor: Convert one use of GlobalFilter.getInstance() to instance by @claremacrae in #2286
  • refactor: remove cyclic dependencies & optional parameter in TaskLineRenderer.ts by @ilandikov in #2284
  • refactor: extract data attribute names dictionary from getComponentDataAttribute() by @ilandikov in #2255
  • refactor: remove destructured object and return in createTaskList() by @ilandikov in #2293
  • refactor: remove destructured types in Query.ts by @ilandikov in #2292
  • refactor: move code for task counts text to QueryResult by @claremacrae in #2300

New Contributors

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

πŸ™ Support Tasks development

4.7.1: 2 fixes for auto-adding Created Date

21 Sep 18:19
Compare
Choose a tag to compare

What's Changed

Please restart Obsidian after updating the plugin. Thank you.

Main changes

Here are the most notable user-visible changes.

πŸ’ͺ Fixes

  • fix: Editing a checkbox line with empty description now adds creation date, if enabled by @ilandikov in #2264
  • fix: 'Create or edit task' now adds Created date if adding global filter by @claremacrae in #2274

πŸ› οΈ Behind the scenes

  • test: Add exhaustive testing of 'Edit task modal' under wide range of scenarios by @claremacrae in #2272

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

πŸ™ Support Tasks development

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

12 Sep 09:20
Compare
Choose a tag to compare

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

4.6.1: Auto-Suggest is more selective

01 Sep 21:31
Compare
Choose a tag to compare

What's Changed

Please restart Obsidian after updating the plugin. Thank you.

Main changes

Here are the user-visible changes.

πŸ’ͺ Fixes: Auto-Suggest is more selective

  • fix: Only show dataview suggestions when there is an open bracket preceding the cursor position. by @kedestin in #2204
  • fix: Prevent auto-suggest appearing before the end of the checkbox by @claremacrae in #2244

Docs:

πŸ› οΈ Behind the scenes

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