Search & replace in current file doesn't scroll to show current match sometimes

Steps to reproduce

In a long note, use the “Search & replace in current file” command to search for something that occurs multiple times throughout the note. Either click the Replace button or the Prev or Next buttons multiple times.

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

The note should scroll to display the matches.

Actual result

Sometimes the note will not update to display the matches.

Environment

SYSTEM INFO:
Obsidian version: v1.5.7
Installer version: v1.5.3
Operating system: Windows 10 Pro 10.0.19045
Login status: logged in
Catalyst license: insider
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

When the note doesn’t update to display the the current selected match, you can keep clicking Prev or Next and eventually the note will often update after a few clicks.

Thanks!

Can you attach a document where this happens in sandbox vault?

Off-topic(?)


On pre-catalyst 1.5.3 search and replace done from outside doesn’t sometimes update with the replacement. Note must be closed and re-opened to have the updated text.

So this may not be a new thing is what I’m saying, but as I said, I do full-vault replacements from outside of Obsidian (Python).

Oh, OP hasn’t done replacements yet. That’s different…

1 Like

Copy to Points.md (17.0 KB)

In the sandbox vault, if I “Search & replace in current file” for a [ and start clicking next, it won’t update the scroll location of the note.

Thanks!