atom-parinfer icon indicating copy to clipboard operation
atom-parinfer copied to clipboard

How to handle multiple cursors?

Open oakmac opened this issue 10 years ago • 1 comments

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.

oakmac avatar Nov 08 '15 18:11 oakmac

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()

J-qak avatar Mar 04 '16 16:03 J-qak