Skip to content

Support filtering for interactive --resume session pickerΒ #241

@andyfeller

Description

@andyfeller

Describe the feature or problem you'd like to solve

I find it difficult to find the right interactive session to resume when there are hundreds to choose from. It would help me narrow down the list if I could filter the results based on text; whether the session summary or some other information about the session.

Proposed solution

In the GitHub CLI, users can "type to filter" in any single or multi select prompt:

$ gh repo create
? What would you like to do?  [Use arrows to move, type to filter]
> Create a new repository on github.com from scratch
  Create a new repository on github.com from a template repository
  Push an existing local repository to github.com

Something like this would provide an ideal and consistent experience in GitHub CLIs. πŸ€”

Example prompts or workflows

No response

Additional context

$ copilot --resume
 Select a session to resume:

 #    Modified    Created     Msg  Summary

...
 β–‹  511. 1mo ago     1mo ago     5    What does the `cli/cli` repository say is the best way...
 β–‹  512. 1mo ago     1mo ago     18   What does the `cli/cli` repository say is the best way...
 β–‹  513. 1mo ago     1mo ago     4    I'd like for you to display the `cli/cli` repository readme
 β–‹  514. 1mo ago     1mo ago     41   I would like your help enhancing the `cli` logic within...
 β–‹  515. 1mo ago     1mo ago     0    (no message content)
 β–‹  516. 1mo ago     1mo ago     0    (no message content)

 Use ↑↓ to navigate, Enter to select, Esc to cancel

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions