Commit graph

433 commits

Author SHA1 Message Date
Maas Lalani aca8dcbc89
docs: fix bubbles components links 2022-07-11 10:41:16 -04:00
Christian Rocha be4027ce28
fix(write): honor --height argument 2022-07-08 22:39:21 -04:00
Maas Lalani d760cf4048
docs: Arch Linux (btw) 2022-07-08 22:39:21 -04:00
Maas Lalani 901e367fe2
refactor: rename gum search to gum filter 2022-07-08 13:58:14 -04:00
Ayman Bagabas 432d6dd032
docs: add badges 2022-07-08 13:47:21 -04:00
Maas Lalani 62b7fe6ac0
Merge pull request #2 from charmbracelet/release
Prepare for release & add workflows and update readme
2022-07-08 13:45:00 -04:00
Maas Lalani 0cbe05030b
Merge pull request #3 from charmbracelet/demo
fix: example
2022-07-08 13:42:23 -04:00
Carlos A Becker 9db6389fec
fix: example
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-07-08 14:38:42 -03:00
Ayman Bagabas d0325fd2f9
feat: add Dockerfile 2022-07-08 13:37:13 -04:00
Ayman Bagabas 7d5333deb2
docs: add installation methods to readme 2022-07-08 13:31:54 -04:00
Maas Lalani 6273aa6138
fix: support arrow keys for searching 2022-07-08 13:29:56 -04:00
Ayman Bagabas 9c8ac09dc6
feat(ci): add ci build and goreleaser 2022-07-08 13:21:53 -04:00
Maas Lalani b58dc52fc8
docs: add join comment with example 2022-07-08 10:23:45 -04:00
Maas Lalani 9e483004fc
docs: show complex gum join layout 2022-07-07 23:29:18 -04:00
Maas Lalani 4557fe8406
docs: gum write, gum join 2022-07-07 23:21:33 -04:00
Maas Lalani ff1f02f470
fix(write): Placeholder color fix 2022-07-07 22:39:42 -04:00
Maas Lalani d8ac24bcc6
fix: ignore node_modules by default 2022-07-07 22:39:28 -04:00
Maas Lalani 66e01ac849
feat: list all files if gum search receives no input. 2022-07-07 22:10:31 -04:00
Maas Lalani 53aa5c6a90
feat: Add gum join command 2022-07-07 19:32:21 -04:00
Maas Lalani fa4f09a413
feat: Default accent color is 212 (Bubble Gum Pink) 2022-07-07 17:46:22 -04:00
Maas Lalani 0bf74df4fc
docs: add demo 2022-07-07 15:25:40 -04:00
Maas Lalani 9f4f9ecbf1
refactor: rename to gum 2022-07-07 14:59:27 -04:00
Maas Lalani 0b9efbda37
doc: flavors 2022-07-07 13:29:11 -04:00
Maas Lalani a0e2cda3cb
feat: Add gum write command
Write provides a shell script interface for the text area bubble. It can
be used to ask the user to write some long form of text (multi-line)
input. The text the user entered will be sent to stdout.

```
gum write > output.text
```
2022-07-07 13:29:11 -04:00
Maas Lalani 25a12fbbc6
feat: gum style can take multiple arguments 2022-07-07 13:29:10 -04:00
Maas Lalani e2854d5b23
feat: add example/demo.sh to showcase functionality 2022-07-07 13:29:10 -04:00
Maas Lalani 12cde525ee
fix: searching should clear options when selected 2022-07-07 13:29:10 -04:00
Maas Lalani 09feddcc61
feat: Add gum style command
Style provides a shell script interface for Lip Gloss. It allows you to
use Lip Gloss to style text without needing to use Go. All of the
styling options are available as flags.

Let's make some text glamorous using bash:

```
gum style \
    --foreground "#FF06B7" --border "double" \
    --margin 2 --padding "2 4" --width 50 \
    "And oh gosh, how delicious the fabulous frizzy frobscottle" \
    "was! It was sweet and refreshing. It tasted of vanilla and" \
    "cream, with just the faintest trace of raspberries on the" \
    "edge of the flavour. And the bubbles were wonderful."
```

Output:

```
╔══════════════════════════════════════════════════╗
║                                                  ║
║                                                  ║
║    And oh gosh, how delicious the fabulous       ║
║    frizzy frobscottle was It was sweet and       ║
║    refreshing. It tasted of vanilla and          ║
║    cream, with just the faintest trace of        ║
║    raspberries on the edge of the flavour.       ║
║    And the bubbles were wonderful.               ║
║                                                  ║
║                                                  ║
╚══════════════════════════════════════════════════╝
```
2022-07-07 13:29:10 -04:00
Maas Lalani 2320f10278
feat: add stdin input handling and logging helpers 2022-07-07 13:29:10 -04:00
Maas Lalani 454040cf4d
feat: Add gum spin command
Spin provides a shell script interface for the spinner bubble. It is
useful for displaying that some task is running in the background while
consuming it's output so that it is not shown to the user.

For example, let's do a long running task:
```
sleep 5
```

We can simply prepend a spinner to this task to show it to the user,
while performing the task / command in the background.

```
gum spin -t "Taking a nap..." -- sleep 5
```

The spinner will automatically exit when the task is complete.
2022-07-07 13:29:10 -04:00
Maas Lalani c906d1904d
feat: Add gum search command
Search provides a fuzzy searching text input to allow filtering a list
of options to select one option.

i.e. Let's pick from a list of gum flavors:

```
cat flavors.text | gum search
```
2022-07-07 13:29:10 -04:00
Maas Lalani 2f07eacf50
feat: Add gum input command
Input provides a shell script interface for the text input bubble. It
can be used to prompt the user for some input. The text the user entered
will be sent to `stdout`.

```
gum input --placeholder "What's your Bubble Gum flavor?" > answer.text
````
2022-07-07 13:28:52 -04:00
Maas Lalani 92a2d31291
Initial commit 2022-07-06 12:05:45 -04:00