Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display Control Characters as ^A, ^M #2936

Open
musclewizard opened this issue May 31, 2019 · 2 comments · May be fixed by #5231
Open

Display Control Characters as ^A, ^M #2936

musclewizard opened this issue May 31, 2019 · 2 comments · May be fixed by #5231

Comments

@musclewizard
Copy link

This is a feature request:

When using kakoune, ascii control characters display as a generic non-displayable unicode character:

kakoune-control-characters

using another editor I get this which is more useful for me:

nvim-control-characters

I'd like it if kakoune could render the control characters like that so I can distinguish between them. (I think there may be fonts out there that can render them, but none of the ones I've tried work - Droid Sans, Liberation Sans, Source Code Pro.)

Thanks for considering my request

@Screwtapello
Copy link
Contributor

There are Unicode symbols specifically designed for rendering control characters, but the traditional ^ notation wouldn't require a fancy font.

In the mean time, I have a thing in the status-bar to show the codepoint of the character under the cursor, which helps me verify what I'm looking at.

@musclewizard
Copy link
Author

musclewizard commented Jun 14, 2019

We're on the same page. I think the ^ notation is the practical choice since fonts implementing the control code stand-in characters seem uncommon.

In the mean time, I have a thing in the status-bar to show the codepoint of the character under the cursor, which helps me verify what I'm looking at.

This is definitely helpful for some use cases, and i'll be using it, but unfortunately for me verifying a message would mean moving the cursor over each unknown character vs just looking.

alois31 added a commit to alois31/kakoune that referenced this issue Sep 8, 2024
Previously, all ASCII control characters would be shown as the replacement
character. This leads to a visual loss of information and ambiguities,
particularly when opening files that contain lots of control characters (or
binary files). Use the common circumflex notation, known from software such as
`cat -v` or vim, instead.

Fixes mawww#2936
@alois31 alois31 linked a pull request Sep 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants