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

Show code point in statusline #5860

Closed

Conversation

jakoschiko
Copy link

This PR adds an option to show the code point under the cursor in the statusline. The code point is formatted using "U+" notation.
Screenshot_20230207_002602

@kirawi kirawi added A-helix-term Area: Helix term improvements A-gui Area: Helix gui improvements S-waiting-on-review Status: Awaiting review from a maintainer. labels Feb 7, 2023
@archseer
Copy link
Member

archseer commented Feb 7, 2023

Do we need a persistent statusline element? We recently merged :character-info #4000

@jakoschiko
Copy link
Author

My use case: Checking for unexpected characters after pasting text from the internet.

The statusline would be more convient because I can simply move the cursor while looking at the statusline. But the command would still improve my current situation.

@gibbz00 gibbz00 mentioned this pull request Feb 22, 2023
5 tasks
@tgulacsi
Copy link

A copy-paste sometimes ends with \x00 - Vi shows it as ^@, helix as space.

echo -e "this is \\\\x00\x00:" | hx

the cursor vanishes over there, but my problem is that it is not shown that it is not a normal space.

@pascalkuthe
Copy link
Member

I am going to close this as stale. I don't see us adding a statusline element for this as its fairly niche and we already have :character-info.

Thank you for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-gui Area: Helix gui improvements A-helix-term Area: Helix term improvements S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants