Commit Graph

444 Commits

Author SHA1 Message Date
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
Maas Lalani
08346909a9
feat(choose): Wrap around choose list and g/G keybindings (#122)
* `G` goes to last element / `g` goes to first element
* Wrap around on first and last elements
2022-08-18 17:12:00 -04:00
Maas Lalani
5f4cc48069
docs: add git-branch-manager.sh
From @andrew8088's video on Gum:
https://www.youtube.com/watch?v=tnikefEuArQ
2022-08-15 13:57:45 -04:00
NalZE7
bcfded82c8 docs: fix a warning in the filter example
fixing a here-document warning in the filter-key-value.sh script
2022-08-15 12:22:31 -04:00
Maas Lalani
5d24ca88f4
test: add default gum commands without any flags as test cases 2022-08-11 18:14:37 -04:00
Maas Lalani
4cb290e596
docs: Add ENVIRONMENT_VARIABLE configuration to README 2022-08-08 17:06:30 -04:00
Maas Lalani
9b3c8c0db0
Allow --value to pre-populate gum filter (#113)
* Add --value option to filter command

Modeled after fzf's --query option this allows the inital model to be
prefiltered.

Additionally, if the initial list, before being filtered by --value, is
empty then treat this as an error. Filtering an empty list doesn't make
sense.

Co-authored-by: David Morgan <david_a_morgan@icloud.com>
2022-08-08 16:54:24 -04:00
Maas Lalani
c1a1a73a0e
feat: add timeout on confirm options & messages (#111)
Co-authored-by: Christoper Hans <4262799+ChrHan@users.noreply.github.com>
2022-08-08 13:57:55 -04:00
Maas Lalani
2afa42b603
chore: Ignore .DS_Store files
Ignroe .DS_Store files
2022-08-08 12:52:51 -04:00
Carlos A Becker
de518387a4 fix: disable aur publish
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-08-07 12:06:45 -04:00
Maas Lalani
84f3096665 perf: improve filter fuzzy by pre-allocating slice 2022-08-05 12:25:15 -04:00
Mike Oertli
89f2928571 added clarity on completing a 'write'
added some comments and info in the readme regarding how to complete (or exit) a 'write'
2022-08-05 11:59:01 -04:00
Maas Lalani
60ceeff5dc docs: examples for better sudo and shell history picker 2022-08-05 02:40:21 -04:00
Maas Lalani
6aee67259c fix: resize images 2022-08-05 02:35:52 -04:00
Maas Lalani
1479184f3f fix: satisfy all linters 2022-08-05 02:33:40 -04:00