github charmbracelet/gum v0.4.0

latest releases: v0.14.5, v0.14.4, v0.14.3...
2 years ago

Gum Themes!

You can now configure Gum to use default styling for different commands with $ENVIRONMENT_VARIABLES. Gum will use this configuration by default (--flags can override these settings):

For example, gum filter can be customized with the following:

export GUM_FILTER_INDICATOR="*"
export GUM_FILTER_INDICATOR_FOREGROUND=1
export GUM_FILTER_PROMPT=""
export GUM_FILTER_PROMPT_FOREGROUND=1

# command will now use default customization from the environment variables but
# can still be overridden by flags.
gum filter

New Features

  • --char-limit flag is now available on gum write and gum input to limit the number of characters typed into the inputs.

Bug Fixes

  • Fix readability on light theme for gum confirm
  • gum style --help now lists all flags available
  • gum filter uses alternative screen buffer if no --height is specified to preserve screen history when it exits (with --height flag it runs inline)

Full Changelog: v0.3.0...v0.4.0


The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Slack.

Don't miss a new gum release

NewReleases is sending notifications on new releases.