Ability to suppress control-d exit behavior#1549
Conversation
scottnemes
left a comment
There was a problem hiding this comment.
Verified new option controls the ctrl-d behavior as expected.
Arguably the default should be changed since it can be confusing to new users. But exiting on control-d/EOF is also the default for _eg_ bash. Ringing the bell when no action can be taken is consistent with other control keys on the empty line.
dfec2e9 to
8f07da7
Compare
|
Review summary I focused on correctness/regressions, security, and missing tests. No security issues spotted. Two potential behavior/regression concerns and a test gap below. Findings
Missing tests
If you want, I can sketch a minimal test harness for prompt_toolkit keybindings based on the existing test setup. |
Description
Arguably the default should be changed since it can be confusing to new users. But exiting on control-d/EOF is also the default for eg bash.
Ringing the bell when no action can be taken is consistent with other control keys on the empty line.
Tests would be nice! But would require an alternate myclirc and simulated keypresses, which I don't know how to do.
Checklist
changelog.mdfile.AUTHORSfile (or it's already there).