atom / teletype

Share your workspace with team members and collaborate on code in real time in Atom
https://teletype.atom.io
MIT License
2.41k stars 322 forks source link

Add avatars below cursors #530

Open KoltesDigital opened 4 years ago

KoltesDigital commented 4 years ago

This is not a PR yet, but rather a first step to ask:

Description of the Change

This features adds the site avatar below its cursor. To do so, it uses TextEditor.decorateMarkerLayer with type overlay.

The fact that it's added into the existing markerLayersBySite system has the benefit that the suppression on site disconnection is already handled.

Alternate Designs

Other avatars are displayed in React elements, but it was more complicated to follow the cursor. I believe it perfectly fits as a use case of overlay decoration.

Benefits

The participants follow more easily what others do.

Possible Drawbacks

I saw the avatars are drawn above the bottom bar.

Verification Process

Only manually tested for now.

sadick254 commented 4 years ago

This could make the UI too cluttered. I would suggest you look into teletype and confirm if your suggestion can be a package. Thanks for the interest. We might review this when the idea is fully fleshed out.

KoltesDigital commented 4 years ago

You can see what it would look like: https://www.twitch.tv/videos/711181860

Agreed, I haven't though about the teletype provided service. I'll have a look at it.