zed icon indicating copy to clipboard operation
zed copied to clipboard

Show all hidden characters, not just whitespace

Open caius opened this issue 2 years ago • 1 comments

Check for existing issues

  • [X] Completed

Describe the feature

Coming from TextMate with hidden characters shown, I've gotten used to characters(/sequences?) like ^O and ^P being shown when I have invisible characters shown. Having now checked the preferences and seen Zed has show_whitespace: true rather than show invisible characters, I don't think this is a bug but being able to see all invisible characters not just whitespace is useful.

Currently typing ctrl-alt-o or ctrl-alt-p (and other keys) will insert a control character into the document in Zed, but there's very little in the way of user feedback. If I'm in a git-tracked document then the gutter shows differences on the current line, and if I move left/right with the arrow keys I can see the cursor appearing to be "stuck" in place as it moves over the control characters (which are zero-width in the UI).

It would be useful to see them, ideally like TextMate produces them with the control characters shown visually, but even a text box in Safari shows an unprintable character box.

If applicable, add mockups / screenshots to help present your vision of the feature

Readme.txt:

Hello

more Readme.txt:

Screenshot 2023-10-16 at 10 31 20

TextMate, showing Readme.txt:

Screenshot 2023-10-16 at 10 31 39

Zed, showing Readme.txt:

Screenshot 2023-10-16 at 10 31 30

caius avatar Oct 16 '23 09:10 caius

Definitely need this. My current workaround is to open VSCode and paste the file in there to look for unprintables.

keithrowell avatar Jul 14 '24 23:07 keithrowell

Yes, yes, yes yes yes Yes-yes-yes Yes-yes

GildedHonour avatar Aug 13 '24 23:08 GildedHonour

Same problema here, and very frustrating, because I have the spanish keyboard layout, and when I try to get the terminal out (same shortcut than vscode ctrl-`, which leads to this char: ) it writes a hidden character onto my code and the output is very confusing (rust).

In vscode that shortcut works properly.

kidandcat avatar Oct 25 '24 20:10 kidandcat

the users of Emacs yawned

GildedHonour avatar Oct 26 '24 00:10 GildedHonour

I have a swedish keyboard and I can't really use Zed properly until this features is added. Other than that, love Zed! It's an amazing editor.

cryptopatrick avatar Oct 30 '24 20:10 cryptopatrick

Vouch

Write avatar Nov 06 '24 13:11 Write

Juts want to support the need for this!

insane-dreamer avatar Aug 08 '25 16:08 insane-dreamer