Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/file: support multiple file selection #786

Open
dextermallo opened this issue Dec 19, 2024 · 0 comments
Open

feature/file: support multiple file selection #786

dextermallo opened this issue Dec 19, 2024 · 0 comments

Comments

@dextermallo
Copy link

Is your feature request related to a problem? Please describe.

No. Have checked past issues/PRs and seems there's no relevant feature request.

Describe the solution you'd like

  • Description: Adding multi-file selection (similar with gum choose) in the commnad gum file.
  • Use cases: I would like to select multiple files as input for a command using gum file. The file paths are provided by users' inputs so I cannot use gum choose to define it.
  • Implementation ideas: The logic of selection can be implemented the same as gum choose (
    currentSelected := 0
    ).

Describe alternatives you've considered

If files (that aims to be selected) are all under the same directory, gum choose solves the issues.
image

But it does not work when it comes to cross-directory (yes we can use -r to print the directory recusrively, but I think it's a mess :/)

Additional context

I am not a golang expert but I am willing to contribute :)

@dextermallo dextermallo changed the title feature/file: support multiple selection & cross directory feature/file: support multiple file selection Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant