Implement CTRL + L or similar commands to discard a prompt
Resolved 💬 3 comments Opened Sep 3, 2025 by thetinygoat Closed Sep 8, 2025
💡 Likely answer: A maintainer (rben01, contributor)
responded on this thread — see the highlighted reply below.
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_
Showing cached comments. Read the full discussion on GitHub ↗
2 Comments
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