F3 'Find next' and 'Find previous' hotkeys do not always operate on current pane

Steps to reproduce

  1. Open 2 separate notes in different panes, side-by-side
  2. Run a fnd command (ctrl+f) for a phrase in note 1. It doesn’t matter what it is.
  3. Switch focus to note 2 and run a find command for another phrase.
  4. Then switch focus back to note 1.
  5. Press the F3 keyboard shortcut to jump to the next search result.
  6. You would expect the search to run in note 1, which has focus. However, it will jump to the next search result in note 2, which does not have focus.

Expected result

We would expect to see the F3 next search result to run in the pane with focus.

Actual result

Instead, it will jump to the next search result in the note which has most recently run the find command.

Environment

  • Operating system: Windows 10 Home and Pro
  • Obsidian version: 0.12.19
1 Like

Reproduced on MacOS as well. Obsidian 0.13.3