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

Show a user's cursor to collaborators when typing #261

Open
Zsailer opened this issue Mar 22, 2024 · 4 comments
Open

Show a user's cursor to collaborators when typing #261

Zsailer opened this issue Mar 22, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@Zsailer
Copy link
Member

Zsailer commented Mar 22, 2024

Problem

In most collaborative editing applications, when a user is typing, their name appears over the cursor. This is a really helpful (and now expected UX) when collaborating in documents. This allows everyone to know who is making the current changes as they appear.

Jupyter collaboration doesn't do this. It only shows a name when you hover over the cursor. There are some improvements to that behavior we can make too, highlighted in #259.

Proposed Solution

We should change Jupyter Collaboration to always show the user's name when they are typing.

Additional context

See this video of Google docs as an example:

Collaborator-cursor.mov
@Zsailer Zsailer added the enhancement New feature or request label Mar 22, 2024
@coolsyntax
Copy link

Hi, I would like to work on this issue. Please assign it to me.

@davidbrochart
Copy link
Collaborator

Thanks for offering your help @coolsyntax!

@coolsyntax
Copy link

Hi, I am working on this issue, but when I try to use the showTooltip function to create a state field and layer for the username tooltips, the usernames do not appear. I've tried creating a custom view plugin which updates the state on keyboard events, I've also tried creating a Widget decoration to display the username directly above the cursor, and looked at the documentation of CodeMirror, but failed to make any progress. Could you please help me solve this issue? I'd appreciate any guidance or feedback you can provide on the best way to display the user's name above their cursor while they are typing in the collaborative Jupyter environment.

@krassowski
Copy link
Member

@coolsyntax can you open a draft PR with what you tried and think was the best attempt so far?

@coolsyntax coolsyntax removed their assignment Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants