Commit graph

208 commits

Author SHA1 Message Date
Maas Lalani 08346909a9
feat(choose): Wrap around choose list and g/G keybindings (#122)
* `G` goes to last element / `g` goes to first element
* Wrap around on first and last elements
2022-08-18 17:12:00 -04:00
Maas Lalani 5f4cc48069
docs: add git-branch-manager.sh
From @andrew8088's video on Gum:
https://www.youtube.com/watch?v=tnikefEuArQ
2022-08-15 13:57:45 -04:00
NalZE7 bcfded82c8 docs: fix a warning in the filter example
fixing a here-document warning in the filter-key-value.sh script
2022-08-15 12:22:31 -04:00
Maas Lalani 5d24ca88f4
test: add default gum commands without any flags as test cases 2022-08-11 18:14:37 -04:00
Maas Lalani 4cb290e596
docs: Add ENVIRONMENT_VARIABLE configuration to README 2022-08-08 17:06:30 -04:00
Maas Lalani 9b3c8c0db0
Allow --value to pre-populate gum filter (#113)
* Add --value option to filter command

Modeled after fzf's --query option this allows the inital model to be
prefiltered.

Additionally, if the initial list, before being filtered by --value, is
empty then treat this as an error. Filtering an empty list doesn't make
sense.

Co-authored-by: David Morgan <david_a_morgan@icloud.com>
2022-08-08 16:54:24 -04:00
Maas Lalani c1a1a73a0e
feat: add timeout on confirm options & messages (#111)
Co-authored-by: Christoper Hans <4262799+ChrHan@users.noreply.github.com>
2022-08-08 13:57:55 -04:00
Maas Lalani 2afa42b603
chore: Ignore .DS_Store files
Ignroe .DS_Store files
2022-08-08 12:52:51 -04:00
Carlos A Becker de518387a4 fix: disable aur publish
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-08-07 12:06:45 -04:00
Maas Lalani 84f3096665 perf: improve filter fuzzy by pre-allocating slice 2022-08-05 12:25:15 -04:00
Mike Oertli 89f2928571 added clarity on completing a 'write'
added some comments and info in the readme regarding how to complete (or exit) a 'write'
2022-08-05 11:59:01 -04:00
Maas Lalani 60ceeff5dc docs: examples for better sudo and shell history picker 2022-08-05 02:40:21 -04:00
Maas Lalani 6aee67259c fix: resize images 2022-08-05 02:35:52 -04:00
Maas Lalani 1479184f3f fix: satisfy all linters 2022-08-05 02:33:40 -04:00
Maas Lalani 2d5ef98037 fix: gum write --char-limit 0 should ignore limit 2022-08-04 15:13:57 -04:00
Maas Lalani 4e61c120b0 fix: run spinner on stderr 2022-08-04 13:50:42 -04:00
Ayman Bagabas 131ae3b9c8
fix(man): remove unused line 2022-08-04 12:16:30 -04:00
Maas Lalani ff4956a2a6
docs: s/gum-bin/gum 2022-08-04 11:51:05 -04:00
Maas Lalani b042321317
docs: gum is now on official Arch packages 🎉 (use pacman) 2022-08-04 11:50:18 -04:00
Maas Lalani 46ce0e4761 feat: allow configuration via environment variables 2022-08-04 11:22:42 -04:00
Maas Lalani 35e044d140
fix: use WithAltScreen instead of deprecated EnterAltScreen 2022-08-04 11:21:51 -04:00
Maas Lalani b8669c420b
fix: enter AltScreen if auto height 2022-08-04 11:15:21 -04:00
Maas Lalani 7842b83c9d
fix(confirm): readable on light theme 2022-08-03 14:06:55 -04:00
Maas Lalani 5cb341f169
fix: remove env:"-" tag 2022-08-03 13:44:56 -04:00
maplepie eadcc5510f
fix(style): print flags in style command (#91)
current style command doesn't print Style Flags in help flag
2022-08-03 13:43:20 -04:00
Maas Lalani bba0f3b1e0
refactor: remove unneeded set:"name=" 2022-08-03 12:28:02 -04:00
Mathias Griffe 06e8546366 feat: Make input and write textarea CharLimit configurable through options
Removes the hardcoded 400 chars CharLimit (default for textarea), and make the CharLimit configurable through an Option.
2022-08-03 11:20:09 -04:00
Maas Lalani 197e52a362
feat: escape as abort option (like ctrl+c) 2022-08-02 21:00:42 -04:00
Maas Lalani cdd7b7b6ba
docs: document --password flag for gum input 2022-08-02 20:54:16 -04:00
Maas Lalani 910e365004
test(example): don't use -e for echo 2022-08-02 19:10:40 -04:00
Maas Lalani d48959d528
test: Add test suite
Adds test suite in ./examples/test.sh
2022-08-02 19:06:32 -04:00
Maas Lalani a4362dc317
docs: use common tagline
A tool for glamorous shell scripts.
2022-08-02 16:48:43 -04:00
Maas Lalani c049d1a5fa feat: filter height and scrolling viewport 2022-08-02 16:40:57 -04:00
Dolev Hadar fb4a9e6320 fix: skip if limit is <= 1 2022-08-02 13:57:55 -04:00
Dolev Hadar 0e33ee95e1 feat: select/deselect all items in gum choose with a/A 2022-08-02 13:57:55 -04:00
Maas Lalani a9627edea4
refactor: git stage cli (simplified) 2022-08-02 13:56:40 -04:00
Christian Muehlhaeuser f695901207 chore: nicer PR example in README 2022-08-02 17:35:37 +02:00
Nickiel12 4194c3116b
A basic git cli for staging/unstaging files (#76) 2022-08-02 17:27:52 +02:00
Maas Lalani 7eb1e7e322 fix(choose): Fix paging up bug
Fixes https://github.com/charmbracelet/gum/issues/82
2022-08-02 11:21:12 -04:00
Maas Lalani 378a000f70
docs: Pull request template 2022-08-01 16:16:09 -04:00
Maas Lalani 9c973b65bf
Update issue templates (#70) 2022-08-01 16:12:14 -04:00
Maas Lalani 03e0c80b0c
docs(examples): Move to PR example to README instead of script 2022-08-01 16:09:45 -04:00
Aaron Korte 01c7d96945
feat: pass stderr (#64)
* feat: pass stderr

Pass stderr from the command run by gum spin analog to how stdout is passed.

#63

* Apply suggestions from code review

* Update spin/spin.go

* fix(spin): Add stderr to output

When `--show-output` is passed we should display all the output of the
command and allow scripters to control `stderr` and `stdout` how they
want.

For example, if a user wants only `stdout` they can redirect stderr to
`/dev/null`:

```
gum spin --show-output -- <action> 2> /dev/null
```

Co-authored-by: Maas Lalani <maas@lalani.dev>
2022-08-01 13:24:01 -04:00
Maas Lalani b95962f5b5
docs(examples): Add script to list and checkout PRs on GitHub
Allows listing all PRs on a repository and checkout the selected pull request.
2022-08-01 13:01:54 -04:00
Ayman Bagabas 252081b9ea
fix: man pages binary description (#65)
* fix: man pages binary description

* Update man/command.go

Co-authored-by: Maas Lalani <maas@lalani.dev>
2022-08-01 11:50:02 -04:00
Maas Lalani e4c0a69618
fix(filter): Ctrl+H backspaces textinput
8f65160828
2022-07-31 13:22:41 -04:00
Christian Muehlhaeuser 0d938497ac fix: AUR package description 2022-07-31 12:11:14 -04:00
Maas Lalani b7f04e04ef
docs: brew install gum 2022-07-31 11:49:38 -04:00
Maas Lalani 5c6453b07c
fix(choose): ctrl+c aborts with exit 130 2022-07-30 22:12:59 -04:00
Maas Lalani f0106b51ae
docs: delete branches example 2022-07-30 22:02:07 -04:00