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
Maas Lalani
b670c6d674
refactor: bubble up ErrAborted
2022-07-30 21:42:48 -04:00
Maas Lalani
0baa0b98bd
fix(input): ctrl+c exit status 130
2022-07-30 21:29:09 -04:00
Maas Lalani
d324abeab5
refactor: exit package
2022-07-30 21:23:25 -04:00
Christian Muehlhaeuser
6538d726d1
feat: ctrl-c & esc abort filtering
2022-07-30 21:23:25 -04:00
Wissam Youssef
fd788a4dd9
Fixes #23
2022-07-30 19:22:26 -04:00
Maas Lalani
75a10561fa
docs: add filter example with identification (key / value)
2022-07-30 18:14:29 -04:00
Maas Lalani
fd50224627
wip
2022-07-30 18:14:29 -04:00
Maas Lalani
cb590e324e
chore: fix linting
2022-07-30 18:04:26 -04:00
Maas Lalani
61a9219d0a
feat(spin): --show-output
and exit code should match command's
2022-07-30 18:04:26 -04:00
Maas Lalani
c17387b919
fix(choose): Ctrl+C should not return any items if selected
2022-07-30 17:00:07 -04:00
Maas Lalani
c886eb142e
docs: spinner types as code
2022-07-30 16:56:22 -04:00
Maas Lalani
27ebad9ee2
docs: list available spinner types
2022-07-30 16:53:24 -04:00
Maas Lalani
c9caec2c62
fix(filter): TrimSpace
on input
2022-07-30 16:50:28 -04:00
Christian Muehlhaeuser
66993d8ef1
Add soft & hard linter configs & workflows ( #44 )
...
* chore: add linter configs & workflows
* fix: ignore certain linter warnings
* fix: mark errors as intentionally ignored
* fix: avoid unnecessary conversion
* fix: handle template/renderer errors
* fix: mark intentionally unused code
2022-07-30 12:32:59 -04:00
Maas Lalani
e4fc0c2e74
docs: fix commit.sh example to not use bashism
2022-07-29 12:56:32 -04:00
Carlos A Becker
7e3cf1f62f
docs: fix example
2022-07-29 12:55:03 -04:00
Carlos A Becker
757e23120e
fix: demo in readme requires bash
...
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-07-29 12:55:03 -04:00
Maas Lalani
98353ae4d3
docs: Add node.js embedding gum example
2022-07-29 12:34:31 -04:00
Maas Lalani
671777aa59
feat: ability to change default value of confirmation
2022-07-29 12:13:35 -04:00
Maas Lalani
5b7d006487
feat: add --password
option for masked input
2022-07-29 11:21:23 -04:00
Maas Lalani
0927958421
docs: Use #!/bin/sh
instead of #!/bin/bash
2022-07-28 16:24:41 -04:00