Open gingerbeardman opened 7 years ago
Hi, are you asking how you might go about creating a plugin that leaves any existing sections alone?
The line that replaces the selections is here https://github.com/bigfive/atom-sublime-select/blob/master/lib/editor-handler.coffee#L133
I imagine you would want to read all the existing selection ranges on mouse down, then add those existing selection ranges to the new ones added during _selectBoxAroundCursors
.
If you manage it, I'd love to take a look. We could make it an optional feature.
As it is every plugin I've used that operates on a selection replaces all selections with the results of its work on the first selection.