Use case or problem
Replacing text within a selection does not work as expected. Currently, if I select a portion of a note and then use
Ctrl/Cmd+h, the Find bar is filled with the entire text of the selected region. If I click in the Find bar and change the text, now the entire note will be searched and replaced.
I would expect that I could select a part of a note, trigger the
search & replace command, enter the text I wish to replace in the Find field, and be able to replace only matches within the selection (similar to MS Word).
As an example: say I have a whole bunch of Dataview key/value pairs that were originally in YAML, but I cut/pasted them into the actual note. I would like to select this region of the note, trigger the replace command, enter
: into the Find field and
:: into the Replace field, and be able to replace all instances of : within only that selection (not impacting any other part of the note).
Current workaround (optional)
Replacing multiple instances only works manually right now. So in my previous example, I would have to click
Next a whole bunch of times until I got to the area where I pasted my Dataview pairs, then continue to click
Next until I have fixed each instance within my desired area.
Related feature requests (optional)
I did a few cursory searches and didn’t find another request for this fix/feature. But let me know if I am just missing how to do this, or if there is already a thread that I have missed.