Would that function work the same way as if you’d dong a search using ctrl+f? Let me make clearer my end goals:
- This search: {(?:^{}]+|(?0))} with the Regex and Highlight Matches options will outline all the outermost matched {}'s in my file. I would like to bind that whole operation to a hotkey.
- This search:^\s*$ with Regex on followed by enter puts my cursor at the next empty line. In this case I don’t want to highlight all the occurrences in the file, I want to move my cursor to the next instance each time. I would like to bind this sequence of actions to a hotkey.
It seems like this should be very simple to accomplish. If somebody could explain to me how to either create a macro that will do this (doesn’t seem possible because macros don’t record searches) or how to write a plugin that would do a search with whatever options turned on I want and allow me to either highlight all the matches or just move to the next one I would be very appreciative.
I’ll try to look through that example you gave me but as you say it seems a little unclear to me.
p.s. If anybody could give me a good explanation (or point me to one) on how Views, RegionSets, Regions, Edits, and Windows … work(?) I would really appreciate it. Like what the difference between a View and a Region are and how RegionSets and Regions are related. I think I have a very rough understanding of it all but If someone wouldn’t mind laying it out a little more clearly for me I would really appreciate it.
As always thank you all for your help!