Closed notpeter closed 3 weeks ago
it seems like some of the control characters are not getting rendered any ideas what we can do when I add a space or character the highlights rendered over the text
Adding Non-Breaking space: " " to this list. On MacOS, type option + space to create one. Thanks @tjconcept for the easy reproduction
Check for existing issues
Describe the feature
Working with a document that had some invisible
U+200D
zero-width joiner characters which resulted in some odd rendering bugs.Zed should highlight these and optionally potentially other classes of "bad" characters:
U+200B
(Zero Width Space),U+200C
Zero Width Non-joiner,U+200D
(Zero Width Joiner)U+200E
,U+200F
)Additionally it might be helpful to optionally support highlighting "maybe bad" characters:
–
—
…
(U+2026)Vscode:
Zed:
VSCode includes a bunch of settings which help control this behavior `editor.unicodeHighlight.* as inspirations for how to control this behavior.
If applicable, add mockups / screenshots to help present your vision of the feature