Maas Lalani
4b998515fd
feat(choose): use home/end to go to first/last option
2023-07-25 12:28:02 -04:00
Dieter Eickstaedt
d1ad453ce6
feat: Timeout for Choose Command ( #384 )
2023-06-30 09:28:46 -04:00
Maas Lalani
92c890e717
fix: use lipgloss.Width
instead of runewidth.StringWidth
2023-05-11 22:21:09 -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
Maas Lalani
e6de7749b1
fix: require choice for multiselect
2023-02-27 19:05:50 -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
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
2d54d5394e
feat(choose): add ctrl+j / ctrl+k keybindings
2022-12-13 14:41:29 -05:00
Kevin Pham
57c8c90bfd
feat(choose): use tab
to toggle selection
...
Resolves #200
2022-10-18 16:31:21 -04:00
fedeztk
6b7f5ef77b
fix(choose): wrong "a" behavior ( #137 )
2022-08-30 12:24:25 -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
1479184f3f
fix: satisfy all linters
2022-08-05 02:33:40 -04:00
Maas Lalani
197e52a362
feat: escape as abort option (like ctrl+c)
2022-08-02 21:00:42 -04:00
Dolev Hadar
fb4a9e6320
fix: skip if limit is <= 1
2022-08-02 13:57:55 -04:00
Dolev Hadar
0e33ee95e1
feat: select/deselect all items in gum choose with a/A
2022-08-02 13:57:55 -04:00
Maas Lalani
7eb1e7e322
fix(choose): Fix paging up bug
...
Fixes https://github.com/charmbracelet/gum/issues/82
2022-08-02 11:21:12 -04:00
Maas Lalani
5c6453b07c
fix(choose): ctrl+c aborts with exit 130
2022-07-30 22:12:59 -04:00
Maas Lalani
c17387b919
fix(choose): Ctrl+C should not return any items if selected
2022-07-30 17:00:07 -04:00
Christian Muehlhaeuser
66993d8ef1
Add soft & hard linter configs & workflows ( #44 )
...
* chore: add linter configs & workflows
* fix: ignore certain linter warnings
* fix: mark errors as intentionally ignored
* fix: avoid unnecessary conversion
* fix: handle template/renderer errors
* fix: mark intentionally unused code
2022-07-30 12:32:59 -04:00
Maas Lalani
5a1195dda5
fix: choose prefixes and pink gum
text
2022-07-14 10:37:22 -04:00
Maas Lalani
4d98a8fa6f
feat(choose): Add paginator to chooser
...
Display paginator only if number of options > height specified
2022-07-13 15:49:15 -04:00
Maas Lalani
01404ef586
feat(choose): Ability to choose multiple choices --limit
...
This commit introduces the ability to choose multiple options from the list of choices in `gum choose` by adding a `--limit` flag.
2022-07-13 11:45:52 -04:00
Maas Lalani
5de4df66d2
refactor: add package comments describing behavior
2022-07-13 09:55:36 -04:00
Maas Lalani
46ddc28ae5
feat: gum choose
, pick from a list of choices
...
gum choose allows the user to be prompted for a choice from a list of choices.
For example, let's ask the user to pick a card from a deck.
gum choose --height 15 {Ace,King,Queen,Jack,Ten,Nine,Eight,Seven,Six,Five,Four,Three,Two}" of "{Spades,Hearts,Clubs,Diamonds}
2022-07-11 16:26:23 -04:00