chriswalz / bit

Bit is a modern Git CLI
Apache License 2.0
6.06k stars 106 forks source link

Feature request: be more like readline #24

Closed jyn514 closed 4 years ago

jyn514 commented 4 years ago

I'd expect the following behavior that isn't currently present:

nanohard commented 4 years ago

I fully expect every command line program to exit with ^C, as it is the default SIGINT to exit/break.

jyn514 commented 4 years ago

I expect command line programs that I'm waiting on to exit on ^C - I'm interrupting the computation. I expect command line programs that are waiting on me to reset on ^C - I'm interrupting my input.

nanohard commented 4 years ago

Ahhhh! Now I get you; my mistake. Yeah, that sounds like a good feature.

wookayin commented 4 years ago

+1. Having emacs-like readline keybinding would be great, e.g. CTRL-A, CTRL-E, CTRL-U, etc. Even better if it supports inputrc.

chriswalz commented 4 years ago

You can now use emacs key binds with 14cb613e5091461df145a233e272357aee904027

running the current command without clearing the buffer is interesting. I'm curious of others would like that.

In terms of the behavior of ctrl + c. I personally prefer it to exit in this particular case since I think some people may get confused if they can't exit with ctrl + c. Depending on feedback I'm certainly open to changing it.

chriswalz commented 4 years ago

I'm gong to consider this issue done. Please file another issue if bit v0.6.1 is missing anything