Smarter cursor placement around inlay hints #10001
Replies: 2 comments 3 replies
-
For exploration it seems this is a PR that touched it microsoft/vscode#128140 |
Beta Was this translation helpful? Give feedback.
-
Our cursor semantics are fundamentally different than vscodes. Vscode has a cursor between character while we have cursors on characters. Our implementation is consistent with that behavior. The problem is mostly that you are using bar cursor which are just a visual gimmick and don't reflect the actual cursor semantics which are always block cursor based. |
Beta Was this translation helpful? Give feedback.
-
Cursor placement and character insertion near inlay hints currently feels a bit janky:
helix_hint.webm
This is how it looks in VS Code:
vscode_hint.webm
Neovim also deals with this pretty well:
neovim.mp4
I'm not sure what they do under the hood, but it feels like they always do the "right" thing, positioning your cursor where it makes the most sense in the current context.
Beta Was this translation helpful? Give feedback.
All reactions