Hi all,
So I’m attempting to write my first Sublime plugin I know…
Basically, at work I tend to use the multi selection feature to select several places (obviously) and then change an id or something to that affect. My idea is that when you have several places select and you type $1 then it will loop each selected point and replace it with the next number starting from 1.
I know that I can use sublime.region and view.sel to get the current positions, but how can I check that whilst selections are made, and the user types “$1” so that it will replace every select with the appropriate number?
And I need to account for the user actually wanting to type $1 so an escape character \ will need to be also checked as to stop the plugin from doing its business.
James