charmbracelet / gum

A tool for glamorous shell scripts 🎀
MIT License
17.94k stars 339 forks source link

gum file --cursor is not working properly #662

Open UnixxSH opened 1 month ago

UnixxSH commented 1 month ago

Describe the bug Changing the cursor for the 'gum file' isn't working properly, neither with environment variable nor parameter.

To Reproduce Method 1:

codespace@codespaces-ae80d9:/workspaces/test$ gum file --cursor "→ "
> -rw-rw-rw- README.md                                                                                                                                                     

↑ up • ↓ down • esc close • enter submit

Method 2:

codespace@codespaces-ae80d9:/workspaces/test$ export GUM_FILE_CURSOR="→ "
codespace@codespaces-ae80d9:/workspaces/test$ gum file
> -rw-rw-rw- README.md                                                                                                                                                     

↑ up • ↓ down • esc close • enter submit

Expected behavior I expect the cursor to change as defined, this is working when using gum choose:

codespace@codespaces-ae80d9:/workspaces/test$ gum choose "test" "test" --cursor "→ "
Choose:    
→ test     
  test     

↑ up • ↓ down • / filter • enter submit

Additional context Last gum version 0.14.4