Search between bookmarks if there is only one selection? Set up search areas.
Sounds good but I don't see anything about bookmarks in the API documentation.
In the same line of thinking, the search could be done over the current syntax scope (ctrl-shift-space) or the current bracket scope (ctrl-shift-m), but those scopes are not always useful. A 'current function scope' would be nicer.
For the moment, maybe you could make a plugin where you ctrl mouse click the extents as 2 empty selections, then the search as a 3rd full selection.
Sounds like a fair alternative... I'll try that.
The two outer selections must be empty and will delimit the search area.
The middle selection will be used as a search pattern; if it's an empty selection, the whole word will be used.