Search by task-todo and tag not working correctly

Steps to reproduce

Create a file with the following content:

- [ ] not bug report task
- [ ] #bugReport task
- [ ] other task

Search the following

task-todo:"" tag:bugReport

Expected result

- [ ] #bugReport task

Actual result

- [ ] not bug report task
- [ ] #bugReport task
- [ ] other task

Environment

  • Operating system: Windows 10
  • Obsidian version: v0.12.3

Additional information

  • safe mode on, no css
  • same with adding a # to the tag (tag:#bugReport)
  • other cases below

image


image

Workaround

task-todo:"#bugReport"

This is the correct behaviour. Tag uses page level match. task-todo: uses a block level match.

Your workaround is not a workaround but the solution.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.