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

feat(ui): file encoding in statusline #1355

Merged
merged 2 commits into from
Dec 25, 2021
Merged

feat(ui): file encoding in statusline #1355

merged 2 commits into from
Dec 25, 2021

Conversation

matoous
Copy link
Contributor

@matoous matoous commented Dec 24, 2021

Display file encoding in statusline if the encoding isn't UTF-8.


I assume this will be configurable in the future with the rest of the statusline but for now this seems like a reasonable step in between, hopefully with reasonable default.

Display file encoding in statusline if the encoding
isn't UTF-8.
@@ -50,6 +50,8 @@ pulldown-cmark = { version = "0.8", default-features = false }
# file type detection
content_inspector = "0.2.4"

encoding_rs = "0.8"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't helix-view/helix-core re-export encoding already? We shouldn't have to import this twice

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

helix-view used it but didn't re-export it. I re-exported it from helix-core and import it from there in helix-view and helix-term.

From there it can be imported by other mods
that rely on it.
@archseer archseer merged commit 4b0b1a5 into helix-editor:master Dec 25, 2021
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 this pull request may close these issues.

None yet

2 participants