atom-parinfer
atom-parinfer copied to clipboard
How to handle multiple cursors?
Need to spend some HammockTime thinking about how to deal with multiple cursors.
Easy solution would be to just not run parinfer when there are multiple cursors. Another idea would be to keep track of all the parent expressions effected by the multiple cursors and run parinfer on those individually.
In my opition, multiple cursors should be handled individually, as if user would manually type on each cursor. It should be handled by order from top to bottom, as they appear in atom.workspace.getActiveTextEditor().getCursorsOrderedByBufferPosition()