✨ Invisible characters
austincondiff opened this issue · 2 comments
Description
We want to provide users with the ability to show invisible characters. In order to do this, our text view needs to support this.
Invisible | Character | Unicode | Name |
---|---|---|---|
Space | · | U+00B7 | Middle Dot |
Newline | ¬ | U+00AC | Not Sign |
Tab | ⟶ | U+27F6 | Long Rightwards Arrow |
Return | ¤ | U+00A4 | Currency Sign |
Hard Return | ¶ | U+00B6 | Pilcrow Sign |
Carriage Return | ↵ | U+21B5 | Downwards Arrow with Corner Leftwards |
We should be able to both toggle visibility and customize which character is rendered for the following
- Carriage return (CR)
- End of line (EOL)
- Space
- Tab
Screenshots
He is working on this for STTextView. https://x.com/krzyzanowskim/status/1688338147392815105?s=46&t=SWZSpaV3dOcD1wyXafRdPg
Just found out about the project, kudos!
Ideally, "standard" characters (space/tab/CR/NL) could be toggled separate from everything else (hair-spaces, word-joiners, etc., etc.). Personally, I never need/want to see space/tab/newline, but I need to be able to see all the other "invisible" characters (including things that are "visible", as well as be able to tell the difference between characters that are normally indistinguishable from other characters, e.g. no-break-space, no-break-hyphens, etc.).
Probably not first pass, but possibly something to keep in mind down the road?
Thanks for considering!