mikaelmello / inquire

A Rust library for building interactive prompts
https://docs.rs/inquire
MIT License
1.71k stars 72 forks source link

Add "cntl-D" to list of actions which cancel the current prompt session #232

Closed mikecvet closed 3 months ago

mikecvet commented 3 months ago

Also mentioned in https://github.com/mikaelmello/inquire/issues/224 that "cntl-d" is a common session-exit key combination. This PR adds it alongside 'escape' and 'cntl-g' (this is an odd one to cancel the session, by the way)

mikaelmello commented 3 months ago

this is an odd one to cancel the session, by the way

lol, I agree but it seems like this is an expected emacs binding. One day I'll refactor it out to a "add emacs support" checkbox