v0.9.0

charmbracelet/gumv0.9.0Jan 12, 2023by github-actions[bot]

AI Summary

Users can now customize formatting themes and keybindings for selection commands. The release also adds new flags for the file command and improves various bug fixes regarding symlinks and exact matching.

Key Highlights

  • Customizable glamour themes (dark, dracula, notty)
  • New keybindings (`ctrl+j`/`ctrl+k` and `tab` for `choose`)
  • New `--file` and `--directory` flags for `gum file`
  • `--header` values for textinput
  • Exact match (non-fuzzy) in `gum filter`

New Features

  • custom themes
  • keybindings (ctrl+j/k, tab)
  • file flags
  • textinput header
  • soft-wrap option for pager
  • stdin input for style
  • exact match filter

Full Release Notes

## Customize Format Theme 🎀

This brand new release of Gum features minor improvements and additional options, as well as some sweet bug fixes!

With `v0.9.0`, you can now customize your glamour theme to make `gum format` even more glamorous.

To get started just run one of the following:

```bash
gum format --theme dark < README.md
```

```bash
gum format --theme dracula < README.md
```

```bash
gum format --theme notty < README.md
```

> **Note**
> You can also pass your own custom glamour JSON theme file to the `--theme` flag for even more customization.

<img width="800" src="https://user-images.githubusercontent.com/42545625/212132105-409d62f1-d8e3-44b6-b320-86c56bf304bd.gif" />


### New Features
* `gum choose` now supports <kbd>ctrl+j</kbd> / <kbd>ctrl+k</kbd> keybindings
* `gum choose` can use <kbd>tab</kbd> to toggle selection
* add `--file` / `--directory` flags to select each in `gum file`
* ability to add `--header` values for textinput
* `gum pager` `--soft-wrap` option
* `gum style` pass input to style over stdin
* allow customization of glamour theme in `gum format`

### Bug fixes
* `--all` option defaults to false (matching `ls`)
* exit with status 130 if escape key press on `gum write`
* symlink directory follows link in `gum file`
* allow exact match (non-fuzzy) in `gum filter`

Full Changelog: https://github.com/charmbracelet/gum/compare/v0.8.0...v0.9.0

* * *

<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge.jpg" width="400"></a>

Thoughts? Questions? We love hearing from you. Feel free to reach out on [Twitter](https://twitter.com/charmcli), [The Fediverse](https://mastodon.technology/@charm), or on [Discord](https://charm.sh/chat).