Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement rectangular selections as an extension #174

Closed
marijnh opened this issue Mar 20, 2020 · 5 comments
Closed

Implement rectangular selections as an extension #174

marijnh opened this issue Mar 20, 2020 · 5 comments

Comments

@marijnh
Copy link
Member

marijnh commented Mar 20, 2020

(The thing you get in CM5 when alt-selecting.)

@curran
Copy link
Contributor

curran commented Mar 20, 2020

Incredible! Yes please.

FWIW I've been using this feature quite a lot via the Vim mode in CM5. Great feature.

This is a very interesting case for implementing presence cursors on top of.

I'm looking at doing an integration of CM5 (and CM6 eventually) with this new ShareDB Presence implementation.

@marijnh
Copy link
Member Author

marijnh commented Mar 20, 2020

I'm not sure you are talking about the same type of rectangular selections that I am—at least, I don't see how those could be any use with presence cursors (which I assume are about collaborative cursor positions?).

@curran
Copy link
Contributor

curran commented Mar 20, 2020

Here's a screenshot of the feature I'm referring to.
image

The black is the selected area.

Not sure if this is the same type of rectangular selections you have in mind, but yes presence cursors representing remote users is the idea. I'm not sure how to best represent this sort of selection as a remote user's presence. I suppose there could just be the notion of multiple selections. Haven't dug too deeply into the problem yet, but this would be really cool to get working.

@marijnh
Copy link
Member Author

marijnh commented Mar 20, 2020

Multiple selections are supported (and are what this would be built on top of), but those selections all belong to the current user, and that user's editing acts on them, so I don't see how they are helpful with remote users. I expect decorations are more useful there.

@marijnh
Copy link
Member Author

marijnh commented Apr 15, 2020

I designed the mouse selection interface with this use case in mind, so it should hopefully be implementable on top of that in a way that makes it compose with other mouse selection modifiers (extend current selection, add new selection range)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants