zed/selection-color-notes.txt
Max Brunsfeld 545b5e0161 Assign unique color indices to room participants, use those instead of replica_ids
Co-authored-by: Conrad <conrad@zed.dev>
Co-authored-by: Antonio <antonio@zed.dev>
2023-09-28 11:06:09 -07:00

14 lines
625 B
Text

Assign selection colors to users. goals:
* current user is always main color
* every other user has the same color in every context
* users don't need to be in a shared project to have a color. they can either be in the call, or in a channel notes.
Places colors are used:
* editor element, driven by the buffer's `remote_selections`
* pane border (access to more state)
* collab titlebar (access to more state)
Currently, editor holds an optional "replica id map".
Most challenging part is in the editor, because the editor should be fairly self-contained, not depend on e.g. the user store.