Piero Lescano
8422c49018
feat(filter): Add cyclic navigation ( #483 )
2024-07-25 10:02:56 -04:00
Mikael Fangel
b0f4413188
chore: remove explicitly defined max functions ( #613 )
...
* filter: remove max function
* timeout: remove max function
2024-07-25 09:57:35 -04:00
Dieter Eickstaedt
7e71c4d664
feat: Adding timeout option to Filter command ( #380 )
2023-06-29 17:29:46 -04:00
ROMAIN GUISSET
99f1348a45
feat(filter): add cursor text line styling
2023-06-27 10:37:13 -04:00
Carlos Alexandro Becker
5a4b12c8ca
feat: gum filter --no-sort
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-05-30 09:42:41 -05:00
Maas Lalani
92c890e717
fix: use lipgloss.Width
instead of runewidth.StringWidth
2023-05-11 22:21:09 -04:00
Maas Lalani
bb103c0a03
fix: show header only if not empty
2023-03-22 11:17:06 -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
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
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
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
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
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
aa7683f5e0
fix: full width on gum filter
2022-09-08 12:36:37 -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
84f3096665
perf: improve filter fuzzy by pre-allocating slice
2022-08-05 12:25:15 -04:00
Maas Lalani
1479184f3f
fix: satisfy all linters
2022-08-05 02:33:40 -04:00
Maas Lalani
c049d1a5fa
feat: filter height and scrolling viewport
2022-08-02 16:40:57 -04:00
Christian Muehlhaeuser
6538d726d1
feat: ctrl-c & esc abort filtering
2022-07-30 21:23:25 -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
610e054fb5
feat(filter): add ctrl+j and ctrl+k keybindings
2022-07-28 16:15:32 -04:00
Maas Lalani
5de4df66d2
refactor: add package comments describing behavior
2022-07-13 09:55:36 -04:00
Maas Lalani
02e925ea57
refactor: use embedded style struct for all lipgloss styling
...
This commit uses the embedded style struct for styling in all components. The most notable example is `gum write` where there are many styles that are used and composed for each component of the command.
2022-07-12 16:08:33 -04:00
Maas Lalani
901e367fe2
refactor: rename gum search
to gum filter
2022-07-08 13:58:14 -04:00