Search results don't update when submitting the same search query consecutively

This may have been intended as a feature, but I’ve found it to be a bit frustrating when using the search panel for find/replace operations. I sometimes find myself searching for something, making an edit, and trying to “re-search” to have the instance filtered out.

Steps to reproduce

  • Have some file (foo.md) with the contents foo.
  • From the global search view, search for foo.
  • Change the contents of foo.md to bar.
  • Re-focus the search input (leaving the search for foo) and press Enter.

Expected result

  • No results found. (the previous match should now be filtered out given that the file has changed)

Actual result

  • Nothing happens and foo.md still appears in the search results.

Environment

  • Operating system: macOS
  • Obsidian version: 0.7.6

Additional information

4 posts were merged into an existing topic: Refresh and clear search (0.8.0)