Steps to reproduce
- Hit command F (on mac) and search for text
- (Optional) hit command G to search again
- type or paste text
Did you follow the troubleshooting guide? [Y/N]
N/A
Expected vs Actual result
The text lands at whatever the last insertion point is instead of overwriting the highlighted search results (standard UI on mac and windows since the 1990s)
Environment
Mac OS
Additional information
According to AI this is allegedly an easy change to Code Mirror but this is a major usability blemish on an otherwise excellent product. I read that this issue has been sitting around for over 2-3 years
I mean it is standard in note pad too
Exactly. Notepad. The app Microsoft ships as a bare minimum “yes, your OS can edit text files” utility has had this behavior correct since Windows 95.This isn’t an advanced feature. It’s not a design decision with tradeoffs to weigh. It’s just: when you find text, the text is selected. That’s how selection works. That’s the whole point.
The fact that Obsidian—a note-taking app marketed to writers, researchers, and people who work with text all day—manages to get this wrong while a 30-year-old freebie bundled with Windows gets it right is genuinely embarrassing.
And the thing is, CodeMirror 6 (their underlying editor) absolutely supports this. The selection state is right there. They’re actively choosing to highlight without selecting, which means someone wrote code to do the wrong thing.