debug icon indicating copy to clipboard operation
debug copied to clipboard

Option to rebind Ctrl-D from `quit` to `continue`

Open dmke opened this issue 1 year ago • 2 comments

Your proposal

I'd like to have Ctrl-D behave like continue, not as quit.

This should be opt-in with a config knob, so that it can be set in ~/.rdbgrc.

Additional context

Coming from byebug, letting the program continue with Ctrl+d is deeply engrained in my muscle memory. After switching to debug, I often find myself on the Really quit? [Y/n] prompt.

dmke avatar Aug 27 '24 09:08 dmke

No problem. Could you give us your proposed configuration?

ko1 avatar Dec 17 '24 20:12 ko1

I'm not sure, maybe something like

config set continue_keybind "C-d" # default: not set
config set quit_keybind "C-q"     # default: C-d

which follows readline's inputrc syntax. (I don't know how config variables are parsed, maybe the quotes can be omitted?)

I don't mind different names for the *_keybind knobs. When debug.rb already has existing config variables for key bindings, the new variables should of course follow their naming conventions.

dmke avatar Dec 17 '24 23:12 dmke