Skip to content

separate input to input files and folders #131

Open

Description

@yucongalicechen

Problem

CLI takes input files and folders in one argument, but GUI only supports widget for selecting files or folders. Currently the CLI input for GUI is implemented on selecting files. See #130 for more details.

Proposed solution

Separate input to files and folders to match the functionalities in GUI.

Activity

  1. added this to the 0.2.1 release milestone on Nov 20, 2024
  2. yucongalicechen commented on Dec 27, 2024

    @yucongalicechen
    CollaboratorAuthor

    @sbillinge I'm revisiting this issue. Previously we considered separating input to input files and input folders in gui because it doesn't support widget of selecting multiple files and folders at the same time.
    I found that gui also doesn't support multiple folders. Also, since input is a required argument in our CLI, separating it into two arguments would make the requirement on one of the more complicated.
    Shall we just allow selecting multiple files for gui? If users need to add a folder, they can either select all files inside it or provide the file path in a text file, or they can just type the folder in the box. I can add a bit more instructions in the help message.

  3. sbillinge commented on Dec 27, 2024

    @sbillinge
    Contributor

    yes, that is a good solution. In general, gui's will allow you to CTL-A to select all so it is easy to select everything in a folder.

    If we want to have the CLI functionality of globbing a full directory tree, we could allow input to be "glob" or something and then allow the user to set an optional input which would be the path to the top-level directory and the glob pattern.

    This may be confusing to non-programmers, so we could hide the functionality a bit, buried in the instructions.

    For now, maybe just capture this in an issue that we can backburner for the future if it is asked for, and do it the way you suggest.

  4. yucongalicechen commented on Dec 28, 2024

    @yucongalicechen
    CollaboratorAuthor

    Yeah I think we already have glob functionality in CLI. I'll keep this issue open then and clarify about the widget either in docs or through help messages.

  5. sbillinge commented on Dec 28, 2024

    @sbillinge
    Contributor

    Yeah I think we already have glob functionality in CLI. I'll keep this issue open then and clarify about the widget either in docs or through help messages.

    yes, this is very useful for our more pythony command line folks, so it would be sad to lose it completely if we can figure out how to handle it in the gui (which is for our non-pythony users)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions