Typical scenario:
- Press
CTRL+F
to open find. - Enter some really long and often over+complicated regular expression.
- Many matches eventually highlight once I’ve got it right, along with the first match becoming selected.
- Press
CTRL+H
orCTRL+SHIFT+H
to begin replacement. - My complicated regular expression in the “find” input has been replaced with the first match that got automatically selected, and is not present in the find history.
- Keyboard bashed with fist then rammed in monitor out of frustration as the expression must be written out again.
Is there an option to disable this annoying (bad design) behaviour? When my keyboard focus was already on the “find” text box it shouldn’t be looking from the current file body for a replacement.
The current workarounds are before pressing CTRL+H
or CTRL+SHIFT+F
either:
- Ensure the “find” input is copied to clipboard or some safe place.
- Deselect the automatically selected match.
But those are workarounds and are easily forgotten. This behaviour should be avoidable.
Thanks,
Adam