Skip to content

Control-D to exit copilot cli should only work on an empty input lineΒ #541

@st3fan

Description

@st3fan

Describe the bug

A bunch of times now I have navigated to a place in my prompt to delete a few characters with Control-D and had Copilot CLI immediately exit. I see in the documentation that Control-D is mapped to exit, but that should really only happen on an empty line and not when I am editing a prompt in the middle.

(It is quite maddening that this happens .. becuase the CLI follows "readline compatible" key combinations pretty well, except for control-d, and when you accidentally hit control-d a few times and suddenly not just CLI exits but I also exit my shell and close the window ... )

Affected version

0.0.354 Commit: 076bd172b

Steps to reproduce the behavior

Hit control-d anywhere in a prompt to delete a character.

Expected behavior

When I am editing a prompt, control-d should just delete a character. Not exit copilot.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions