-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix: remove gap cursor #17888
fix: remove gap cursor #17888
Conversation
@@ -65,6 +65,7 @@ export function Editor({ | |||
CustomDocument, | |||
StarterKit.configure({ | |||
document: false, | |||
gapcursor: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is mergeable. I find the weird gap cursor preferable to not being able to place a cursor between two nodes...
Not against this change, as long as we do the extra work to make sure you can add a line between nodes when we click there. Might be best done by detecting the selection and then inserting a line if there isn't one (not sure how hacky that would be)
@benjackwhite being honest I actually like gap cursors, but at least three people were confused by them. I used to reference Linear as an example of a tool that had a similar behaviour but when I went to reply in Slack it looks like they have removed theirs now too: https://github.com/PostHog/posthog/assets/6685876/76e2b25b-28ca-4ad9-bf94-9e3a04f09f20 Maybe the industry is moving away from them as a concept 🤷 My personal vote is to leave the gap cursors alone |
@daibhin - my problem isn't with the cursor itself, but rather with the fact that this change actually removes the ability to place your cursor between two nodes 😅 Which is the bit I don't agree with. We should either fix that, or simply change this to hide the cursor when it is in a gap. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now this is slick 👍
Problem
A lot of people don't understand what this is. Chatted about in https://posthog.slack.com/archives/C05N9R3HT7V/p1696434085225909
Changes
How did you test this code?
gap-insertion.mp4