Cmd+Clicking on tags with same prefix displays incorrect search results

Same issue with all themes

Steps to reproduce

  1. Create a tag named “#action-do
  2. Create a tag named “#action-fup
  3. Cmd+Click on the tag “#action-do” in the editor in one of the notes where the tag was applied and see the search results
  4. Cmd+Click on the tag “#action-fup” in the editor in one of the notes where the tag was applied and see the search results

Expected result

  1. When i click on either of the tags (cmd+click), i expect the search results to be populated with notes that contain the tags.

Actual result

  1. The search results are only correctly populated if i click on the tag that was created first (in case there are tags with same prefix), in my case #action-do
  2. If I click on #action-fup, the search results are shown for either #action- or #fup based on which part of the tag I click.

Environment

  • Operating system: Mac OS 10.15.6
  • Obsidian version: 0.8.1

Additional information

We should have fixed this in 0.8.2 or 0.8.3. Let me know if you still have this problem.

1 Like