CodeEditSourceEditor icon indicating copy to clipboard operation
CodeEditSourceEditor copied to clipboard

✨ Invisible characters

Open austincondiff opened this issue 2 years ago • 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

Visible image

Hidden image

Menu item in Xcode Screenshot 2023-08-13 at 2 48 44 PM

Atom Customization Setting image

austincondiff avatar Aug 13 '23 19:08 austincondiff

He is working on this for STTextView. https://x.com/krzyzanowskim/status/1688338147392815105?s=46&t=SWZSpaV3dOcD1wyXafRdPg

bombardier200 avatar Aug 13 '23 20:08 bombardier200

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!

vr8hub avatar Aug 29 '23 20:08 vr8hub