charmbracelet / gum

A tool for glamorous shell scripts 🎀
MIT License
17.78k stars 337 forks source link

gum choose wrapping (intended?) #556

Open NQMVD opened 4 months ago

NQMVD commented 4 months ago

Describe the bug Cursor doesn't wrap back to the top when hitting the bottom and pressing 'j' (same with top and pressing 'k').

Expected behavior When hitting the bottom of a list with gum choose you were able to jump back to the top with pressing down again. Maybe make it an option if this is intended.

Desktop (please complete the following information):

ptrcnull commented 4 months ago

seems like it's a regression in 0.14.0 after switching to huh

hfhchan-plb commented 2 months ago

The reason why we switched from fzf to gum was that using arrow keys would wrap the selection around, and now it's gone...

Wrap around allows us to choose the last item in the list by pressing up when on the first item, now I need to hold the down button for multiple deciseconds...

caarlos0 commented 1 month ago

will be fixed by https://github.com/charmbracelet/huh/pull/324