Commit graph

433 commits

Author SHA1 Message Date
Maas Lalani 92c890e717
fix: use lipgloss.Width instead of runewidth.StringWidth 2023-05-11 22:21:09 -04:00
Christian Rocha ece25c7789
fix: correct copyright in man 2023-05-11 21:14:22 -04:00
Ayman Bagabas 9d2741c5f9
fix: update copyrights 2023-05-11 20:56:39 -04:00
Maas Lalani 7f54b3b289 feat(write): width < 1 uses terminal width 2023-05-11 15:13:01 -04:00
Christian Rocha 11584b5982
chore(docs): correct release year in license 2023-05-11 11:55:06 -04:00
Carlos Alexandro Becker fff07286b7
docs: update license
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-05-11 12:39:14 +00:00
Carlos Alexandro Becker 39346ed015 fix: missing filepicker styles
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-05-01 10:01:18 -04:00
Maas Lalani 99a1fa9d8e
chore(deps): update bubbles 2023-05-01 09:59:13 -04:00
Maas Lalani 8da9620bfd
chore(lint): add function comment 2023-04-12 09:57:36 -04:00
Maas Lalani 5887a10fa0 fix: strip ansi from gum filter when output is not a tty 2023-04-06 17:36:29 -04:00
Maas Lalani 6dbadf30b4 fix: strip ansi when stdout is not a tty 2023-04-06 17:36:29 -04:00
Maas Lalani 11f23830c5
fix: use Cursor.Style instead of CursorStyle 2023-03-31 11:42:09 -04:00
Maas Lalani 066c79fa14 fix(file): respect file path specified in arguments 2023-03-30 11:30:05 -04:00
Maas Lalani 0f0f8e9189 fix: detect stderr color profile 2023-03-27 12:00:24 -04:00
Maas Lalani e0bcab8608 fix: remove truecolor 2023-03-27 12:00:24 -04:00
Maas Lalani 95ddbdb416 feat: allow passing language to parse code 2023-03-24 13:40:37 -04:00
dependabot[bot] b6daeece02 chore(deps): bump actions/setup-go from 3 to 4
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-22 11:23:35 -04:00
Maas Lalani bb103c0a03
fix: show header only if not empty 2023-03-22 11:17:06 -04:00
Mikael Fangel 38521ff870 fix: correct wrong key combination for gum write in README.md
Fixes #312

### Changes:
 - Moves the `esc` over to the cancel option together with CTRL+c, so it reflects the current behaviour of the program.
2023-03-20 17:47:23 -04:00
mikael d9a3dc5324 Added esc to keys and changed error code to 130 2023-03-20 15:17:16 -04:00
Mikael Fangel 97feb1b4d0
feat: adds headers for choose and filter (#307)
* added header to choose

* corrected mistake in envvar

* added header for filter

* simplified return logic for filter

* Update choose/options.go

* render the header before calculating the height

---------

Co-authored-by: Maas Lalani <maas@lalani.dev>
2023-03-14 15:58:48 -04:00
Mikael Fangel ec2b8d0fee
removed bksp from stdin (#306)
* removed bksp from stdin

---------

Co-authored-by: Maas Lalani <maas@lalani.dev>
2023-03-13 16:35:29 -04:00
Maas Lalani ccc5d9cfea
chore: bump deps 2023-03-13 15:21:39 -04:00
dependabot[bot] b0c9b56e0e feat(deps): bump github.com/charmbracelet/lipgloss
Bumps [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss) from 0.6.1-0.20230222162833-a74950e6da16 to 0.7.1.
- [Release notes](https://github.com/charmbracelet/lipgloss/releases)
- [Commits](https://github.com/charmbracelet/lipgloss/commits/v0.7.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-13 15:09:53 -04:00
dependabot[bot] 1e4012ffde feat(deps): bump github.com/muesli/termenv from 0.15.0 to 0.15.1
Bumps [github.com/muesli/termenv](https://github.com/muesli/termenv) from 0.15.0 to 0.15.1.
- [Release notes](https://github.com/muesli/termenv/releases)
- [Commits](https://github.com/muesli/termenv/compare/v0.15.0...v0.15.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-13 15:09:44 -04:00
Mikael Fangel f46060ac43 Update write/command.go
Co-authored-by: Maas Lalani <maas@lalani.dev>
2023-03-09 12:59:53 -05:00
mikael f8adcd649b fixes errors with CR in write --value 2023-03-09 12:59:53 -05:00
dependabot[bot] 65f5a7e44e feat(deps): bump github.com/muesli/termenv from 0.14.0 to 0.15.0
Bumps [github.com/muesli/termenv](https://github.com/muesli/termenv) from 0.14.0 to 0.15.0.
- [Release notes](https://github.com/muesli/termenv/releases)
- [Commits](https://github.com/muesli/termenv/compare/v0.14.0...v0.15.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>
2023-03-09 12:43:56 -05:00
mikael 708a653eae Fix for using --value in combination w/ --no-fuzzy
This add a check if the no fuzzy flag is set together with the
--no-fuzzy flag.
2023-03-09 12:42:55 -05:00
Mikael Fangel 2bda001480
fix(table): removed inheritance for selected foreground (#300) 2023-03-09 12:35:06 -05:00
Mikael Fangel 1267b7a78e
fix: added esc-key to quit table (#290) 2023-03-06 14:17:47 -05:00
Maas Lalani b5444d5f0b
feat: use filepicker bubble (#289)
* feat: use filepicker bubble

* fix: use new API

* chore: bump bubbles
2023-03-06 11:54:02 -05:00
Maas Lalani 99e6625a39
fix: don't use deprecated pager functions 2023-03-03 13:15:50 -05:00
Maas Lalani e5cb9877cf
chore: bump dependencies 2023-02-27 19:27:06 -05:00
Leon Stam 5431540431 feat(file): Add page up/down key bindings 2023-02-27 19:22:56 -05:00
Mathew Payne 83db83296a
Add staged file check for commit example (#269)
* Add staged file check for commit example

* fix: stage all confirmation

---------

Co-authored-by: Maas Lalani <maas@lalani.dev>
2023-02-27 19:19:23 -05:00
ChrHan 46dee843db
fix(prompt): fix default selection of prompt, timer and exit code (#148)
* fix(prompt): fix default selection of prompt, timer and exit code

* chore(comment): remove unused comment

* fix(confirm): ensure timer is located at fixed selection

* chore(confirm): remove inefficient assignment

* fix: default timeout selection

---------

Co-authored-by: Maas Lalani <maas@lalani.dev>
2023-02-27 19:16:08 -05:00
Maas Lalani e6de7749b1
fix: require choice for multiselect 2023-02-27 19:05:50 -05:00
Maas Lalani 440a3dd81c
fix: go mod tidy 2023-02-27 19:01:08 -05:00
MuXiu1997 877c475aa6
feat: add ctrl+@(ctrl+space) keybinding for choose and filter (#276)
* feat(filter): add ctrl+@ keybinding

* feat(choose): add ctrl+@ keybinding
2023-02-27 18:59:40 -05:00
dependabot[bot] 488138e4b5 feat(deps): bump github.com/charmbracelet/bubbletea
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 0.23.1 to 0.23.2.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v0.23.1...v0.23.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>
2023-02-27 18:58:59 -05:00
Nicolas M f7d8ef5871 build: update go version to 1.17 2023-02-27 18:58:43 -05:00
Kris Schneider 78bb3b5f06 Added Scoop installation instructions for gum 2023-01-19 11:41:03 -05:00
dependabot[bot] 80f3598efd feat(deps): bump github.com/dustin/go-humanize from 1.0.0 to 1.0.1
Bumps [github.com/dustin/go-humanize](https://github.com/dustin/go-humanize) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/dustin/go-humanize/releases)
- [Commits](https://github.com/dustin/go-humanize/compare/v1.0.0...v1.0.1)

---
updated-dependencies:
- dependency-name: github.com/dustin/go-humanize
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-19 11:39:59 -05:00
Maas Lalani 36ef76185c
fix(confirm): esc should not exit with 130 2023-01-13 12:08:06 -05:00
Dhruv Manilawala 08ed3e2519
feat(choose): keep order of selected items (#182)
* feat(choose): keep order of selected items

* fix: KeepOrder -> Ordered

Co-authored-by: Maas Lalani <maas@lalani.dev>
2023-01-12 13:36:11 -05:00
Maas Lalani 832c4fc917 feat: ctrl+c / esc aborts action 2022-12-13 15:47:32 -05:00
Maas Lalani c8e6b4a9d5
fix: trim only trailing newline, space may be intentional 2022-12-13 15:41:01 -05:00
Maas Lalani 7756c809d1
fix(file): all default false (to match ls), GUM_FILE_ environment 2022-12-13 15:36:58 -05:00
Maas Lalani b4d7ebf2cb
fix(write): exit with status 130 on escape 2022-12-13 15:11:37 -05:00