prism-code-editor icon indicating copy to clipboard operation
prism-code-editor copied to clipboard

Smooth following cursor

Open ThinLiquid opened this issue 1 year ago • 1 comments

This isn't a very urgent request but more of a QOL addition, but a smooth cursor that glides similar to VSCode or MS Word (the newer versions). I personally think that these look very nice and would be an amazing addition to the code editor!

ThinLiquid avatar May 23 '24 08:05 ThinLiquid

By "Smooth cursor" do you mean something similar to the cursor with Cursor Blinking set to smooth in VSCode settings?

jonpyt avatar May 23 '24 11:05 jonpyt

No, I mean like when you type the caret glides, its this setting! image

ThinLiquid avatar May 31 '24 16:05 ThinLiquid

This was easy to implement actually. I might consider making it an extension. StackBlitz example.

There is a small issue when word wrap is enabled though. I will improve it in version 3.3.2, but it's near impossible to fix properly.

jonpyt avatar May 31 '24 20:05 jonpyt

Nice! Glad to see it working :3

ThinLiquid avatar May 31 '24 21:05 ThinLiquid

After further consideration, I won't be making an extension out of this. Implementing it yourself requires little code and an extension would be harder to customize.

jonpyt avatar Jun 08 '24 16:06 jonpyt