Skip to content

Add support for automatic replies ala VsCode #12366

Closed

Description

https://code.visualstudio.com/updates/v1_64#_automatic-replies

Something like their syntax:

"terminal.integrated.autoReplies": {
  "[Oh My Zsh] Would you like to check for updates? [Y/n]": "Y\r",
  "Terminate batch job (Y/N)": null
}

Might even be able to close out #217 with this 👀

There'd be obvious edge cases where a string is split over many writes, but that might be acceptable.

The perf hit would be the thing I'd be most worried about. We'd need to have a very clever way of not impacting throughput too much.

Activity

  1. added
    Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.
    Area-SettingsIssues related to settings and customizability, for console or terminal
    on Feb 4, 2022
  2. ghost added
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Feb 4, 2022
  3. removed
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Feb 7, 2022
  4. zadjii-msft commented on Mar 21, 2022

    @zadjii-msft
    MemberAuthor

    brain blast: it's gotta accept capture groups and the ability to reference them in the reply.

    Consider:

    fatal: The current branch dev/migrie/fhl/menu-complete-prototype has no upstream branch.
    To push the current branch and set the remote as upstream, use
    
        git push --set-upstream origin dev/migrie/fhl/menu-complete-prototype
    

    match on

    "autoReplies": {
        "    git push --set-upstream origin (.*)": "git push --set-upstream origin ${match[0]}"
    }

    to automatically output

    git push --set-upstream origin dev/migrie/fhl/menu-complete-prototype

    <pseudo-spec>

  5. zadjii-msft commented on Sep 9, 2022

    @zadjii-msft
    MemberAuthor

    I'm just tracking this in /dup #5916 at this point.

  6. ghost closed this as completedon Sep 9, 2022
  7. ghost added
    Resolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.
    on Sep 9, 2022
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

    Area-SettingsIssues related to settings and customizability, for console or terminalIssue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Product-TerminalThe new Windows Terminal.Resolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions