Skip to content

gum file --cursor is not working properly #662

@UnixxSH

Description

@UnixxSH

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcmd/file

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions