Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to rebind Ctrl-D from quit to continue #1114

Open
dmke opened this issue Aug 27, 2024 · 2 comments
Open

Option to rebind Ctrl-D from quit to continue #1114

dmke opened this issue Aug 27, 2024 · 2 comments

Comments

@dmke
Copy link

dmke commented Aug 27, 2024

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.

@ko1
Copy link
Collaborator

ko1 commented Dec 17, 2024

No problem. Could you give us your proposed configuration?

@dmke
Copy link
Author

dmke commented Dec 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants