Commit graph

528 commits

Author SHA1 Message Date
Carlos Alexandro Becker
86e8fc0a5b
fix: if sort, sort options alphabetically first 2024-12-03 15:13:50 -03:00
Carlos Alexandro Becker
bc64a68142
fix: clarify filter --sort flag
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-12-03 13:26:48 -03:00
Carlos Alexandro Becker
63a3e8c8ce
fix(filter): abort on ctrl+q (#721)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-12-03 11:40:24 -03:00
ctn-malone
cb61fe6c84
chore(nix): update src hash (#733) 2024-12-03 11:39:51 -03:00
dependabot[bot]
90919986f2
chore(deps): bump github.com/alecthomas/kong from 1.5.0 to 1.5.1 (#736)
Bumps [github.com/alecthomas/kong](https://github.com/alecthomas/kong) from 1.5.0 to 1.5.1.
- [Commits](https://github.com/alecthomas/kong/compare/v1.5.0...v1.5.1)

---
updated-dependencies:
- dependency-name: github.com/alecthomas/kong
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-03 04:28:34 +00:00
dependabot[bot]
fef37dae1f
chore(deps): bump github.com/alecthomas/kong from 1.4.0 to 1.5.0 (#735)
Bumps [github.com/alecthomas/kong](https://github.com/alecthomas/kong) from 1.4.0 to 1.5.0.
- [Commits](https://github.com/alecthomas/kong/compare/v1.4.0...v1.5.0)

---
updated-dependencies:
- dependency-name: github.com/alecthomas/kong
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-02 04:16:50 +00:00
Carlos Alexandro Becker
c3e836f0dd
fix(spin): interrupt child process on ctrl+c (#732)
* fix(spin): interrupt child process on ctrl+c

This will send a SIGINT to the child process when ctrl+c is pressed.

closes #730

* fix: lint
2024-11-27 14:58:21 -03:00
Carlos Alexandro Becker
01f36b58a4
chore(deps): use huh main
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-11-26 12:43:44 -03:00
Carlos Alexandro Becker
fb11344ea4
fix(choose): --ordered (#722)
closes #687

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-11-26 12:42:54 -03:00
Pranav RK
620e645845
feat: allow cursor option in file (#667) 2024-11-26 12:42:27 -03:00
dependabot[bot]
e3ba400d6d
chore(deps): bump github.com/charmbracelet/bubbletea from 1.2.3 to 1.2.4 (#731)
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Changelog](https://github.com/charmbracelet/bubbletea/blob/main/.goreleaser.yml)
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v1.2.3...v1.2.4)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-26 04:38:37 +00:00
dependabot[bot]
1156c33ad5
chore(deps): bump github.com/charmbracelet/x/ansi from 0.5.0 to 0.5.2 (#729)
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.5.0 to 0.5.2.
- [Release notes](https://github.com/charmbracelet/x/releases)
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.5.0...ansi/v0.5.2)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-22 04:19:11 +00:00
dependabot[bot]
8ed2ca5e0d
chore(deps): bump github.com/charmbracelet/x/ansi from 0.4.5 to 0.5.0 (#728)
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.4.5 to 0.5.0.
- [Release notes](https://github.com/charmbracelet/x/releases)
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.4.5...ansi/v0.5.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-21 04:56:03 +00:00
dependabot[bot]
06bdaba08f
chore(deps): bump github.com/charmbracelet/bubbletea from 1.2.2 to 1.2.3 (#726)
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 1.2.2 to 1.2.3.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Changelog](https://github.com/charmbracelet/bubbletea/blob/main/.goreleaser.yml)
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v1.2.2...v1.2.3)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-20 04:37:21 +00:00
Carlos Alexandro Becker
098d09a270
fix(choose,confirm,file,filter,input,pager,spin): timeout default unit (#724)
Change it `0s` instead of `0`.

closes #402
2024-11-18 17:10:06 -03:00
Carlos Alexandro Becker
1ffe8b7e70
feat(log): support setting minimum log level with GUM_LOG_LEVEL (#723)
closes #490
2024-11-18 14:02:55 -03:00
Carlos Alexandro Becker
c868aa1c6c
fix(confirm,choose,file,input): timeout handling (#718)
* fix(confirm,choose,file,input): timeout handling

- some fields were not actually using the `--timeout` value
- some fields had different behavior when a timeout did occur. On this
  matter, it seems to me the best way forward is to specifically say it
  timed out, and after how long
- added exit status 124 (copied from `timeout` from coreutils) (fixes #684)

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* Update main.go

Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>

* Update internal/exit/exit.go

Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>

* fix: improve

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* fix: stderr

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
2024-11-18 10:49:15 -03:00
Carlos Alexandro Becker
3cec9b7b9a
fix(filter): panic if no matches
closes #715

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-11-18 10:00:10 -03:00
Carlos Alexandro Becker
20a381a10a
Merge remote-tracking branch 'origin/main' 2024-11-18 09:09:46 -03:00
Carlos Alexandro Becker
60a4b3bf93
feat(filepicker): show permissions and size (#717)
closes #495
2024-11-18 09:07:48 -03:00
Carlos Alexandro Becker
6ad8882990
fix(table): only set height if > 0 (#716)
closes #685
closes #660
2024-11-18 09:07:19 -03:00
Ayman Bagabas
7bdd189616
fix(spin): indenting lines when command is piped (#636)
We don't need to check for isatty, always store the output to the
designated buffer.

Fixes: https://github.com/charmbracelet/gum/issues/607
2024-11-15 15:53:27 -03:00
Carlos Alexandro Becker
f8c466bf3b
fix(confirm): improve timeout handling
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-11-15 15:37:24 -03:00
Ayman Bagabas
6a05246f53
fix: catch huh timeout error (#632)
Huh returns a `ErrTimeout` on timeout error and we need to catch that.

Fixes: https://github.com/charmbracelet/gum/pull/618
2024-11-15 15:37:16 -03:00
Daniel Pritchett ⚡
19e79b11e4
fix(confirm): --timeout was being ignored (#697)
* fix(confirm) Options.Timeout was ignored, now works as documented

* Streamlines command.go per PR feedback
2024-11-15 14:57:27 -03:00
Dieter Eickstaedt
93da22d656
feat(table): adds --return-column (#415)
* feat: Adding Return Column to table command

Consider a table of
ID Name Description
1  Task1 Task description

It would be good to select the row but retrieve the ID for example for further processing

like 'task 1 delete' when first row was selected

* feat: Return Column boundary check fixed

* Update table/options.go

---------

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-11-15 13:50:37 -03:00
dependabot[bot]
c3ce2f97bf
chore(deps): bump github.com/charmbracelet/bubbletea from 1.2.1 to 1.2.2 (#712)
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Changelog](https://github.com/charmbracelet/bubbletea/blob/main/.goreleaser.yml)
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v1.2.1...v1.2.2)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-13 04:44:49 +00:00
dependabot[bot]
03d3bcf178
chore(deps): bump github.com/alecthomas/kong from 1.2.1 to 1.4.0 (#705)
Bumps [github.com/alecthomas/kong](https://github.com/alecthomas/kong) from 1.2.1 to 1.4.0.
- [Commits](https://github.com/alecthomas/kong/compare/v1.2.1...v1.4.0)

---
updated-dependencies:
- dependency-name: github.com/alecthomas/kong
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-11 04:57:18 +00:00
dependabot[bot]
8a007012be
chore(deps): bump github.com/charmbracelet/x/term from 0.2.0 to 0.2.1 (#711)
Bumps [github.com/charmbracelet/x/term](https://github.com/charmbracelet/x) from 0.2.0 to 0.2.1.
- [Release notes](https://github.com/charmbracelet/x/releases)
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.2.0...ansi/v0.2.1)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/term
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-11 04:55:41 +00:00
dependabot[bot]
790be1247a
chore(deps): bump github.com/charmbracelet/bubbletea from 1.1.2 to 1.2.1 (#710)
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 1.1.2 to 1.2.1.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Changelog](https://github.com/charmbracelet/bubbletea/blob/main/.goreleaser.yml)
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v1.1.2...v1.2.1)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-11 04:53:45 +00:00
Carlos Alexandro Becker
b8f99b6053
ci: update 2024-11-07 13:28:31 -03:00
Carlos Alexandro Becker
ac3f44a9db
fix(deps): update goldmark-emoji (#686)
refs #331

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-11-07 13:19:56 -03:00
dependabot[bot]
1023911ea2 chore(deps): bump github.com/charmbracelet/x/ansi from 0.4.0 to 0.4.2
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.4.0 to 0.4.2.
- [Release notes](https://github.com/charmbracelet/x/releases)
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.4.0...ansi/v0.4.2)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-30 11:22:05 -04:00
dependabot[bot]
4323b2e750
chore(deps): bump github.com/charmbracelet/lipgloss (#692) 2024-10-28 12:08:17 +00:00
dependabot[bot]
b5b20c5031
chore(deps): bump github.com/charmbracelet/bubbletea from 1.1.1 to 1.1.2 (#694) 2024-10-28 11:57:16 +00:00
Carlos Alexandro Becker
8c7abe7335
fix: lint issues
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-09-17 09:40:12 -03:00
dependabot[bot]
e06d2e69a6
chore(deps): bump github.com/charmbracelet/x/ansi from 0.3.0 to 0.3.2 (#679)
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.3.0 to 0.3.2.
- [Release notes](https://github.com/charmbracelet/x/releases)
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.3.0...ansi/v0.3.2)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-17 09:38:35 -03:00
dependabot[bot]
c00c2e416a
chore(deps): bump github.com/charmbracelet/x/ansi from 0.2.3 to 0.3.0 (#673)
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.2.3 to 0.3.0.
- [Release notes](https://github.com/charmbracelet/x/releases)
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.2.3...ansi/v0.3.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-12 12:06:57 -03:00
dependabot[bot]
73a7be24fc
chore(deps): bump github.com/charmbracelet/bubbletea from 1.1.0 to 1.1.1 (#672)
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Changelog](https://github.com/charmbracelet/bubbletea/blob/main/.goreleaser.yml)
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v1.1.0...v1.1.1)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-12 12:06:45 -03:00
dependabot[bot]
40889fecd9
chore(deps): bump github.com/alecthomas/kong from 0.9.0 to 1.2.1 (#674)
Bumps [github.com/alecthomas/kong](https://github.com/alecthomas/kong) from 0.9.0 to 1.2.1.
- [Commits](https://github.com/alecthomas/kong/compare/v0.9.0...v1.2.1)

---
updated-dependencies:
- dependency-name: github.com/alecthomas/kong
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-12 12:06:27 -03:00
Carlos Alexandro Becker
1917023901
ci: fix dependabot config v0.14.5
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-09-06 13:39:31 -03:00
Carlos Alexandro Becker
f0bd6f4b45
chore(deps): update
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-09-06 13:39:11 -03:00
Carlos Alexandro Becker
b9611e1d83
fix: lint issues (#663) 2024-09-06 12:06:27 -03:00
dependabot[bot]
8ab6253ca1
feat(deps): bump github.com/charmbracelet/bubbletea from 1.0.0 to 1.1.0 (#665)
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Changelog](https://github.com/charmbracelet/bubbletea/blob/main/.goreleaser.yml)
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v1.0.0...v1.1.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-06 12:06:13 -03:00
dependabot[bot]
65e46d6e84
feat(deps): bump github.com/charmbracelet/x/ansi from 0.2.2 to 0.2.3 (#656) 2024-09-06 15:02:03 +00:00
Carlos Alexandro Becker
a30dda54eb
build: fix goreleaser version
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-08-29 08:47:15 -03:00
dependabot[bot]
6837ed2d45
feat(deps): bump github.com/charmbracelet/bubbletea from 0.27.0 to 1.0.0 (#661)
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 0.27.0 to 1.0.0.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Changelog](https://github.com/charmbracelet/bubbletea/blob/main/.goreleaser.yml)
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v0.27.0...v1.0.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-29 08:46:53 -03:00
Carlos Alexandro Becker
9c1128985e
chore(deps): huh@latest v0.14.4
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-08-23 10:44:10 -03:00
Carlos Alexandro Becker
926c18afed
chore(deps): update huh
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-08-21 16:36:05 -03:00
Carlos Alexandro Becker
7195cf66dc
chore: update codeowners
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-08-21 16:35:52 -03:00