Commit Graph

408 Commits

Author SHA1 Message Date
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
fedeztk
c9fe558a44
feat(filter): Multi-select (#130)
* feat(filter): added multiple selections

* docs(filter): corrected comments about multiSelection print

* feat(filter): fix proposed changes on naming variables and map type

* feat(filter): actually fix map types

* feat(filter): use `○` / `◉` as unselected / selected multi-select options

Co-authored-by: Maas Lalani <maas@lalani.dev>
2022-09-02 21:21:31 -04:00
Maas Lalani
81602545a6
refactor: don't trim newline if we are going to Println anyway
Just use `Print` with the newline
2022-09-02 14:37:26 -04:00
MichalGrzymek
73518ef21b
docs: git-branch-manager.sh should be executable (#139) 2022-08-30 20:49:41 -04:00
fedeztk
6b7f5ef77b
fix(choose): wrong "a" behavior (#137) 2022-08-30 12:24:25 -04:00
Maas Lalani
7a1a91b4e0
docs: show usage with skate (#136) 2022-08-30 12:24:11 -04:00