Skip to content

Feature request: Show bytes count of selection in addition to chars count #5

Description

@Openstreetmapler

For Code Golf, it would be really useful to immediately know the number of selected bytes (in UTF-8 encoding) in addition to the char count. With ASCII-only text like Hello, World!, this won’t make a difference. However, take some text with non-ASCII characters to know what I mean: 👋Héllö – 🌍Wõrld❗

In the above example string, each of the accented letters (éöõ) is 2 bytes long, the en dash and exclamation mark (–❗) each have a length of 3 bytes, and the hand and globe emojis (👋🌍) each take up 4 bytes.

On code.golf, both the total and selection length are displayed in bytes and chars:

43 bytes, 30 chars (29 bytes, 16 chars selected)

Implementing this feature (should probably be togglable) would make this extension useful for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions