Menu

A Caret That Glides in 120 ms Without Slowing Your Typing
📰

A Caret That Glides in 120 ms Without Slowing Your Typing

DEV Community: cpp·HideyukiMORI·8 days ago
#7BKWvrqc
#devtocpp#devto#dev#caret#motion
Long article (1156 words) — no AI summary yet.
Reading 0:00
15s threshold

In NeNe Nib 1.2.0, the caret glides instead of teleporting, and it never holds your typing back.

It's hard to describe and hard to stop noticing once you've typed with it. Here it is in real time:

What's in this post:

What the motion looks like, and how to turn it on

Why it feels smooth, and why it never makes you wait

Sparks: a small burst in your theme's colors on every keystroke

Why both are off by default

The editor

NeNe Nib is my text editor for Windows 11, written in C++23 on Win32 and Direct2D. It works like Notepad by default, and Ctrl+Shift+Space switches it to Vim editing. Version 1.1.0 showed a 16 MiB file in 117 ms, which I measured against Windows Notepad last week.

1.2.0 adds two things that are just for the feel of typing: caret motion and sparks.

Turn it on

Both switches are in the settings drawer.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.