Commit graph

263 commits

Author SHA1 Message Date
Maas Lalani fd58eb07fc
fix: use program.Run() in pager 2022-10-17 20:26:26 -04:00
Maas Lalani 2e4ddce3f7
fix: use program.Start 2022-10-17 20:23:59 -04:00
Maas Lalani 5723977c68
chore: bump bubbletea@master 2022-10-17 20:07:27 -04:00
Ayman Bagabas 0b500f6ec9 docs: apt-key deprecation
Use the recommended keyrings path /etc/apt/keyrings

Per: https://manpages.debian.org/unstable/apt/apt-key.8.en.html#DEPRECATION
Fixes: https://github.com/charmbracelet/gum/issues/208
Fixes: https://github.com/charmbracelet/gum/pull/209
2022-10-17 16:45:44 -04:00
Maas Lalani 992cac834e fix: symlink directory follows directory 2022-10-13 11:48:23 -04:00
Maas Lalani 844727f185
fix(table): hide extra style flags + fix envprefix 2022-10-13 11:02:08 -04:00
Dhruv Manilawala 2c66222fd8 fix(choose): error if selected options > limit
Rationale: If the number of selected options in `--selected` flag is
greater than the limit, the last `n` options are selected where `n` is
the limit.
2022-10-13 11:01:21 -04:00
David Lewis 1353b97272
added nix flake directions (#195)
* added nix flake directions

Co-authored-by: lew2mz <david.lewis@cchmc.org>
Co-authored-by: Maas Lalani <maas@lalani.dev>
2022-10-13 11:00:04 -04:00
Maas Lalani 08c34cfa2f chore: use --[no-]fuzzy as flag 2022-10-13 10:58:57 -04:00
Enrico Candino 8dec822e75 avoid Fuzzy search 2022-10-13 10:58:57 -04:00
Enrico Candino d45b728b4d fix "shuffling" 2022-10-13 10:58:57 -04:00
Enrico Candino d74f126d41 added exact match to filter 2022-10-13 10:58:57 -04:00
Maas Lalani 98ff7656d1 fix: inline file styles 2022-10-12 16:59:56 -04:00
lew2mz b92c9ec858 updated sha256 2022-10-12 11:38:54 -04:00
Maas Lalani dfa412fa1a
test: add table, pager, file to test 2022-10-11 17:47:14 -04:00
Maas Lalani b4c07eb3b9
fix(table): invalid column number 2022-10-11 14:40:25 -04:00
Caeden 1426c2fed9 fix(README): Change .text to .txt 2022-10-08 17:01:32 -04:00
Christian Muehlhaeuser 86fa35d672 perf: speed up filter rendering
We don't need to style each character individually, buffer them
and flush before highlights.
2022-10-07 23:01:38 -04:00
Maas Lalani db75c218de
fix(choose): selected bug when limit == 1 2022-10-07 18:57:26 -04:00
Maas Lalani 995bd04e38 docs: document gum table, file, pager
This commit documents `gum table`, `gum file`, and `gum pager` with
demonstration GIFs and sample scripts.
2022-10-07 15:38:48 -04:00
Maas Lalani 2bea4dc030 feat(file): gum file to pick files 2022-10-07 15:38:48 -04:00
Maas Lalani 430ab459d7 feat(pager): gum pager for scrolling through long documents 2022-10-07 15:38:48 -04:00
Maas Lalani bdd86d5fbc feat(table): gum table for tabular data 2022-10-07 15:38:48 -04:00
Dhruv Manilawala a82d5af1e8
feat(filter): add reverse layout (#177)
* feat: add reverse layout for filter command

* fix: linter warnings

* fix: keep viewport yoffset constant in reverse layout
2022-10-07 15:23:28 -04:00
Ayman Bagabas 0bd02434a3
docs: update apt/yum installation instructions 2022-10-06 17:30:43 -04:00
Maas Lalani 45e930c54e
chore: bump bubbletea@master 2022-10-06 14:55:03 -04:00
Kevin Pham f13b5b6b82 feat(write): use --header to display a label above the textarea 2022-10-06 13:35:43 -04:00
Maas Lalani f69fc23242 fix: don't allow selecting negative value if it is an empty string 2022-10-06 13:30:05 -04:00
Kevin Pham a4d4793829 fix(confirm): an empty --negative will not be displayed
This change will hide the normally "No" button when the text is empty. In most cases, this will serve as an acknowledgement and the affirmative message would likely change.

This seems to be better than displaying an empty button.

Resolves #145
2022-10-06 13:30:05 -04:00
Maas Lalani fecb5ffc7d
chore: bump bubbles@master 2022-10-06 11:45:07 -04:00
Greg Kroah-Hartman 6677920319 feat: add alignment for spinner title
Sometimes it is nice to spin to the right side of the title, not the
left, so add a --align option to pick the left or right side.  The
default remains "left".

New option is:
	--align="left|right"
and the environment variable GUM_SPIN_ALIGN can also be used.
2022-10-02 14:42:19 -04:00
Matt Farstad fa533691c4
feat(choose): Preselect the Selected Option When Limit is One (#166)
* Add startingIndex variable to choose model

* refactor: simplify code branches

Co-authored-by: Matthew Farstad <matthewwilliamfarstad@gmail.com>
Co-authored-by: Maas Lalani <maas@lalani.dev>
2022-10-02 12:51:35 -04:00
Dhruv Manilawala 5c98432070
feat: use shift+tab to toggle selection and move up (#167)
* feat: use `shift+tab` to toggle selection and move up

* refactor: extract CursorUp, CursorDown, ToggleSelection methods

Co-authored-by: Maas Lalani <maas@lalani.dev>
2022-10-02 12:47:41 -04:00
Maas Lalani 9b0f5f015b
docs(filter): document --no-limit / --limit flag on gum filter 2022-09-30 13:34:21 -04:00
NNB 25b5ebff5e Added DIYfetch to examples/ 2022-09-28 11:59:11 -04:00
Maas Lalani a0f2a0b096
chore: bump bubbles 2022-09-27 11:09:17 -04:00
solomon 9cfd2ff75e Updates flake hash and adds overlay to flake 2022-09-27 10:54:37 -04:00
dependabot[bot] a48b71e580 feat(deps): bump github.com/mattn/go-runewidth from 0.0.13 to 0.0.14
Bumps [github.com/mattn/go-runewidth](https://github.com/mattn/go-runewidth) from 0.0.13 to 0.0.14.
- [Release notes](https://github.com/mattn/go-runewidth/releases)
- [Commits](https://github.com/mattn/go-runewidth/compare/v0.0.13...v0.0.14)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-26 08:50:58 +02:00
Christian Muehlhaeuser 85704a54dc chore: add dependabot config 2022-09-26 08:21:34 +02:00
Maas Lalani ea4eb64bee
chore: bump bubbletea to v0.22.1 2022-09-16 15:14:27 -04:00
fedeztk adc82b2fce fix(format): do not append additional new line 2022-09-09 11:43:36 -04:00
Maas Lalani aa7683f5e0
fix: full width on gum filter 2022-09-08 12:36:37 -04:00
Maas Lalani c71c918c86
fix(choose): fix spacing for limit == 1 gum choose 2022-09-07 21:01:42 -04:00
Maas Lalani 21332c833a
feat(choose): Change default icons to match gum filter 2022-09-07 15:43:15 -04:00
eetann 92cd4b0107 docs: fix write key description 2022-09-07 13:06:25 -04:00
lew2mz 5993a7b490 added nix flake 2022-09-06 16:14:18 -04:00
Vaniel 76fc2f3d91 feat(choose): improving selected option parse 2022-09-06 16:13:53 -04:00
Vaniel 6abc94c87a feat(choose): add --selected option to choose command 2022-09-06 16:13:53 -04:00
Maas Lalani b403b0ae58
chore: bump bubbles@v0.14.0 + lipgloss@v0.6.0 2022-09-06 15:29:32 -04:00
Maas Lalani 808f879996
lint: fix lint error unparam on clamp 2022-09-02 21:39:01 -04:00