Skip to content

Implement CTRL + L or similar commands to discard a prompt #3126

Closed

Description

@thetinygoat

What feature would you like to see?

Currently if i have typed a long prompt and i want to cancel it, either i have to delete it manually or quit the process and start again. if i have had a long conversation closing the process leads to losing context.

Are you interested in implementing this feature?

No response

Additional information

No response

Activity

  1. rben01 commented on Sep 3, 2025

    @rben01
    Contributor

    I agree, Ctrl-C and/or Esc should clear the current prompt (and Ctrl-C should not exit, even with confirmation). For now, Ctrl-U will delete an entire line. Since a prompt is probably not that many lines, holding down Ctrl-U is not a terrible solution.

  2. fathert0rque commented on Sep 6, 2025

    @fathert0rque

    I agree, Ctrl-C and/or Esc should clear the current prompt (and Ctrl-C should not exit, even with confirmation). For now, Ctrl-U will delete an entire line. Since a prompt is probably not that many lines, holding down Ctrl-U is not a terrible solution.

    thank you

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions