Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

Add multi cursor click selections #108

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

pranaygp
Copy link

@pranaygp pranaygp commented Jun 9, 2018

This builds on top of #107

You can hold alt and click on multiple points to multiple cursors. Also, when using a selection modifier on top of adding a new cursor (like click+drag or double/triple click), I fixed it so the modifier only applied on the latest/current selection (earlier it would affect all selections which had some funny effects 馃槢)

However, to enable selection modifiers only affecting the last cursor, I'm simply pushing a new cursor to selections (instead of binary searching to insert it in the right order). This lets me simply refer to last_mut(). I don't understand what the point of sorting it correctly is (would love an explanation, cc @nathansobo) but if we need to retain that, I can update this PR to have a variable tracking the newest "cursor".

gif

@jstoiko
Copy link

jstoiko commented Jul 18, 2018

Apologies for the mistakenly submitted (and unsolicited) review. I have no way to undo it 馃憥.

@fdionisi fdionisi mentioned this pull request Apr 11, 2019
40 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants