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!: introduce color profiles and use term/ansi for styles #269

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Commits on Apr 29, 2024

  1. feat: switch to term/ansi for text manipulation

    Use ANSI aware, wide characters support, uniseg backed term/ansi package
    to calculate string widths, truncate, and wrap strings.
    
    Related: muesli/reflow#71
    Fixes: #258
    Fixes: #220
    aymanbagabas committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    e87acc3 View commit details
    Browse the repository at this point in the history
  2. feat!: introduce color profiles and use term/ansi for styles

    This introduces color profiles similar to Termenv color profiles.
    Plus, it switches to using Charmbracelet term & term/ansi to query
    terminal background color for the default renderer, and construct styles.
    
    However, it breaks the renderer API since it doesn't depend on Termenv
    anymore.
    aymanbagabas committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    05affa7 View commit details
    Browse the repository at this point in the history
  3. refactor!: abstract away isatty from renderer

    And export both EnvColorProfile and EnableLegacyWindowsANSI
    aymanbagabas committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    53cea0d View commit details
    Browse the repository at this point in the history
  4. refactor: introduce NoTTY profile and export Sequence

    The NoTTY profile generates no sequences while the Ascii profile
    generates sequences with no colors (bold, italic, underline, etc)
    aymanbagabas committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    1d82be3 View commit details
    Browse the repository at this point in the history
  5. refactor: remove Sequence and cleanup

    Replace Sequence with profile logic checks
    aymanbagabas committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    9ceb279 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2791e00 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8b7cac4 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    1f80bf7 View commit details
    Browse the repository at this point in the history
  9. fix: renderer set once

    aymanbagabas committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    e1eb364 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    bd3952e View commit details
    Browse the repository at this point in the history
  11. docs: update godocs

    aymanbagabas committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    ebf64f5 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2024

  1. Configuration menu
    Copy the full SHA
    61f326c View commit details
    Browse the repository at this point in the history