Commit graph

609 commits

Author SHA1 Message Date
dependabot[bot]
0d116b8068
chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#868) v0.16.0
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.22.0 to 0.23.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  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>
2025-03-10 09:19:20 +00:00
Carlos Alexandro Becker
204d21940e
fix(choose): order when using --label-delimiter (#867)
closes #829
2025-03-05 23:57:08 -03:00
dependabot[bot]
dbac6a83f3
chore(deps): bump github.com/charmbracelet/bubbletea from 1.3.3 to 1.3.4 (#866)
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 1.3.3 to 1.3.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.3.3...v1.3.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>
2025-03-03 10:29:58 +00:00
dependabot[bot]
db86a909bb
chore(deps): bump github.com/muesli/termenv (#865)
Bumps [github.com/muesli/termenv](https://github.com/muesli/termenv) from 0.15.3-0.20241211131612-0d230cb6eb15 to 0.16.0.
- [Release notes](https://github.com/muesli/termenv/releases)
- [Commits](https://github.com/muesli/termenv/commits/v0.16.0)

---
updated-dependencies:
- dependency-name: github.com/muesli/termenv
  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>
2025-02-24 11:05:37 +00:00
Abel Chalier
85a29801d8
fix: wildcard escaping issue (#862) 2025-02-21 14:04:30 -03:00
dependabot[bot]
9f503f5335
chore(deps): bump github.com/alecthomas/kong from 1.8.0 to 1.8.1 (#861)
Bumps [github.com/alecthomas/kong](https://github.com/alecthomas/kong) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/alecthomas/kong/releases)
- [Commits](https://github.com/alecthomas/kong/compare/v1.8.0...v1.8.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>
2025-02-17 11:21:22 +00:00
ctn-malone
308d86be7d
chore(nix): update version and vendor hash (#859) 2025-02-14 21:08:37 -03:00
Charm
a3975b78ee
ci: sync dependabot config (#856) 2025-02-13 11:31:46 -03:00
Charm
25c40f5eca
ci: sync dependabot config (#855) 2025-02-13 11:07:04 -03:00
dependabot[bot]
24fa527d08
chore(deps): bump github.com/charmbracelet/bubbletea from 1.3.2 to 1.3.3 (#854)
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 1.3.2 to 1.3.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.3.2...v1.3.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>
2025-02-12 04:44:46 +00:00
Andrey Nering
2b72e80297
fix(confirm): ensure --show-output show the right answer (#853) 2025-02-11 18:00:03 -03:00
Andrey Nering
93f6857e3d
fix(spin): preserve color output when --show-output is given (#850) 2025-02-11 16:51:38 -03:00
dependabot[bot]
a30c8bdf31
chore(deps): bump github.com/charmbracelet/bubbletea from 1.3.0 to 1.3.2 (#851)
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 1.3.0 to 1.3.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.3.0...v1.3.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>
2025-02-11 04:22:17 +00:00
dependabot[bot]
7b9d51d462
chore(deps): bump github.com/alecthomas/kong from 1.7.0 to 1.8.0 (#849)
Bumps [github.com/alecthomas/kong](https://github.com/alecthomas/kong) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/alecthomas/kong/releases)
- [Commits](https://github.com/alecthomas/kong/compare/v1.7.0...v1.8.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>
2025-02-10 04:43:23 +00:00
dependabot[bot]
9a387e4079
chore(deps): bump golang.org/x/text from 0.21.0 to 0.22.0 (#842)
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.21.0 to 0.22.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.21.0...v0.22.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  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>
2025-02-05 04:40:26 +00:00
Carlos Alexandro Becker
d795b8ab2f
fix(table): padding on item indicator (#841) 2025-02-04 16:38:09 -03:00
Carlos Alexandro Becker
ce6bb49ce0
chore(deps): use latest stable bubbletea
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2025-02-04 16:10:46 -03:00
Raphael Amorim
5660060c40
rename to count instead (#840) 2025-02-04 12:35:00 -03:00
Raphael Amorim
984c84fbd0
feat: show indicator on help keybindings (opt-in) (#839)
* feat: show indicator on help keybindings (opt-in)

* format code
2025-02-04 11:54:06 -03:00
Raphael Amorim
bb098b2662
fix: generated completion invalid for fish shell (choose/options) (#838) 2025-02-03 14:55:05 -03:00
Raphael Amorim
9705aa3384
fix: generated completion invalid for fish shell (#837) 2025-02-03 14:43:46 -03:00
BitBoss
bb9fee7331
docs: update FreeBSD installation instructions. (#824)
Co-authored-by: Dave Turner <dave@clearpathdigital.com>
2025-01-31 14:37:22 -03:00
dependabot[bot]
928ba9ace0
chore(deps): bump github.com/alecthomas/kong from 1.6.1 to 1.7.0 (#832)
Bumps [github.com/alecthomas/kong](https://github.com/alecthomas/kong) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/alecthomas/kong/releases)
- [Commits](https://github.com/alecthomas/kong/compare/v1.6.1...v1.7.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>
2025-01-30 04:51:54 +00:00
Carlos Alexandro Becker
d1fc05155c
fix(pager): memory/cpu usage when using soft-wrap (#827) v0.15.2
easily reproducible, especially with something like

```sh
PAGER="gum pager" man ls
```

Problems here were:
- reflow's truncate is not very efficient
- useless calls to truncate
- bad strings.Replace calls (not necessary, and wouldn't work if text has ansi sequences)
2025-01-28 11:50:36 -03:00
dependabot[bot]
e7c916cff6
chore(deps): bump github.com/charmbracelet/x/ansi from 0.7.0 to 0.8.0 (#826)
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/charmbracelet/x/releases)
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.7.0...ansi/v0.8.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>
2025-01-28 04:28:08 +00:00
Carlos Alexandro Becker
37456557c4
fix(filter): wrong highlight when option has grapheme clusters (#799) v0.15.1 2025-01-22 12:51:18 -03:00
Carlos Alexandro Becker
c11af42c1b
fix(write): ctrl+j not making new line (#819) 2025-01-22 12:51:04 -03:00
Carlos Alexandro Becker
30bc180679
fix(confirm): do not print 'not confirmed' on exit 1 (#814)
closes #809
2025-01-22 11:19:10 -03:00
Carlos Alexandro Becker
2846d19b70
Revert "feat(table): set --print if stdout is not a terminal (#762)" (#811)
This reverts commit 05614c8196.
2025-01-22 11:18:53 -03:00
Carlos Alexandro Becker
2da952756f
fix(spin): clear title after finished (#815)
closes #802

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2025-01-22 11:17:56 -03:00
Carlos Alexandro Becker
05c4bb9868
fix: spin when not a tty (#813)
* fix: spin when not a tty

* fix: typo
2025-01-21 19:37:50 -03:00
Carlos Alexandro Becker
7e3216e2c8
fix(viewport): remove extra line in viewport help (#816) 2025-01-21 19:33:52 -03:00
ctn-malone
65516a664c
chore(nix): update src hash and nix version (#810) 2025-01-21 09:34:38 -03:00
dependabot[bot]
3dcc8b3f37
chore(deps): bump github.com/charmbracelet/x/ansi (#801)
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.6.1-0.20250107110353-48b574af22a5 to 0.7.0.
- [Release notes](https://github.com/charmbracelet/x/releases)
- [Commits](https://github.com/charmbracelet/x/commits/ansi/v0.7.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>
2025-01-15 05:06:10 +00:00
dependabot[bot]
c93da09e13
chore(deps): bump golang.org/x/net from 0.27.0 to 0.33.0 (#798)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.27.0 to 0.33.0.
- [Commits](https://github.com/golang/net/compare/v0.27.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-13 19:31:05 +00:00
Christian Rocha
89d495292b chore(file): remove extra newline above help v0.15.0 2025-01-13 13:58:37 -05:00
Carlos Alexandro Becker
bb34c45fe1
fix(filter): take pre-filtering into account 2025-01-12 17:42:52 -03:00
Carlos Alexandro Becker
b0ec3a7915
fix(filter): select all
refs https://github.com/charmbracelet/gum/pull/777#issuecomment-2585836624

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2025-01-12 17:40:44 -03:00
Carlos Alexandro Becker
da325ae345
fix(filter): wide chars
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2025-01-07 11:28:20 -03:00
Carlos Alexandro Becker
d3d20efc70
fix(filter): properly handle options with ansi styles (#789)
* fix(filter): handle styles option matches

* perf: use ranges

* fix: cut

* fix: ansi update
2025-01-07 11:08:24 -03:00
dependabot[bot]
cd151b51bf
chore(deps): bump github.com/alecthomas/kong from 1.6.0 to 1.6.1 (#790)
Bumps [github.com/alecthomas/kong](https://github.com/alecthomas/kong) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/alecthomas/kong/releases)
- [Commits](https://github.com/alecthomas/kong/compare/v1.6.0...v1.6.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>
2025-01-07 05:00:57 +00:00
Carlos Alexandro Becker
0f8f67f96e
feat(choose): select from stdin (#773)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-12-17 14:43:24 -03:00
Carlos Alexandro Becker
0b89ff82d4
feat: yes|gum confirm (#772)
* feat: yes|gum confirm

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

* fix: rebase on main

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-12-17 14:17:43 -03:00
Carlos Alexandro Becker
4cedf9fca0
feat: --no-strip-ansi (#784)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: Sridaran Thoniyil <sri7thon@gmail.com>
2024-12-17 13:56:19 -03:00
Carlos Alexandro Becker
2e321f57e2
feat(choose): label delimiters (#783)
I'm not sure if I like this impl, but it does work.

closes #406
2024-12-17 09:47:31 -03:00
Carlos Alexandro Becker
6d405c49b1
feat(choose,filter): --input-delimiter --output-delimiter (#779)
* feat(choose,filter): --input-delimiter --output-delimiter

allows to change how content from stdin is used, and how results are
printed.

one could get around it piping into and from `tr`, but results aren't
quite right, especially when `tr '\n' ','` for example, as it'll add an
extra `,` in the end of the string.

This makes things a bit cleaner, hopefully.

closes #274

* fix: use new tty pkg
2024-12-13 17:03:42 -03:00
Carlos Alexandro Becker
0e501ea47f
feat(filter): --select-if-one returns if single match (#778)
closes #311

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-12-13 16:59:59 -03:00
Carlos Alexandro Becker
966237b378
feat(filter): allow to pre-select items with --selected (#777)
closes #593
2024-12-13 16:59:44 -03:00
Carlos Alexandro Becker
f230a3d5fc
feat(filter): allow to focus out of filter (#776)
- esc focus out of the filter
- esc with filter blurred quits
- g/G/j/k navigation when filter is blurred

closes #201
2024-12-13 16:59:32 -03:00
Carlos Alexandro Becker
64d69eb59b
feat(version): adds command to check current gum version (#775)
* feat(version): adds command to check current gum version

closes #352

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

* Update version/command.go

Co-authored-by: Gareth Jones <Jones258@Gmail.com>

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: Gareth Jones <Jones258@Gmail.com>
2024-12-13 16:59:14 -03:00