Skip to content

Great potential. Some initial suggestions #12

Closed

Description

@forthrin
  1. Make it work with macOS default background color #224FBC. Specifically, use ANSI faint ("\033[2m") over unreadable gray.
  2. Count characters (cheap and great bonus feature) and show by frequency ascending, so the rare Unicode comes first in the list.
  3. Let PageUp and PageDown jump between metadata groups.

Activity

  1. lusingander commented on Oct 7, 2026

    @lusingander
    Owner

    Thank you for your interest.

    Make it work with macOS default background color #224FBC. Specifically, use ANSI faint ("\033[2m") over unreadable gray.

    Since the colors are customizable, I do not have plans to make fine adjustments to the default settings.

    Count characters (cheap and great bonus feature) and show by frequency ascending, so the rare Unicode comes first in the list.

    I am not entirely sure what kind of feature you have in mind.

    Let PageUp and PageDown jump between metadata groups.

    I certainly agree that this would be useful to have.

  2. forthrin commented on Oct 7, 2026

    @forthrin
    Author
    1. Faint is more semantically correct for what you're trying to do (make information less protrudent). Well, think about it.
    2. By counting characters you get an extra very handy feature basically for free.
    curl -s https://github.com/ | ruby -e 'puts STDIN.read.chars.tally.map { |c, n| format "%04X\t%s\t%d\n", c.ord, c.ord < 32 ? "-" : c, n }' | sort -k 3n
  3. lusingander commented on Oct 7, 2026

    @lusingander
    Owner

    By counting characters you get an extra very handy feature basically for free.

    Just to make sure I understand point 2 correctly: do you mean counting each code point in the input and showing the less frequent ones first?

    If so, I understand the use case, but I think it is outside the scope of Sauva. The main purpose of this application is to inspect Unicode code points, grapheme clusters, and their details, rather than to analyze text statistics.

    It also doesn't seem like a small, low-cost addition that fits naturally into the current workflow.

  4. forthrin commented on Oct 7, 2026

    @forthrin
    Author

    Yes. That helps you locate the curious ones you want to inspect.

    The tool already accepts a stream of characters to show as a list, so a tally is all that's missing.

    It's a one-liner, as you've seen from the example, basically eg. stats = items.tally and add count to your printf.

    Sorting could be by code point. But it's your tool if you find it OoS.

  5. lusingander commented on Oct 9, 2026

    @lusingander
    Owner

    Thanks for the clarification.

    That said, as mentioned above, I don't plan to implement this for now, since I think it's outside the current scope of Sauva. This may change in the future, but at this point I'd prefer to keep the scope focused.

    For 1, I also don't plan to make any changes for the reasons mentioned above. 3 has been addressed in #15, so I'll close this issue.

    Thanks for the suggestions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions