-
Notifications
You must be signed in to change notification settings - Fork 128
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
What about adding an option to disable command repeat (on Enter key)? #764
Comments
I could try a PR if you like. Perhaps it could be something like updating this point: to: @repl_prev_line = line unless ENV['RUBY_DEBUG_NO_REPEAT_ON_ENTER'] # TODO: replace the ENV with a new option in config.rb |
Your request is adding new option to stop the repeating the command, but another option is don't repeat Ruby script. |
SessionCommand class represents the session commands attributes. * repeat: repeat on empty command. * cancel_auto_continue: cancel auto continue on `source`. * postmortem: available on postmortem mode. * unsafe: unsafe command (not supported). Now only a few commands such as `step`, `next`, ... are `repeat`able. Maybe it fixes #764
SessionCommand class represents the session commands attributes. * repeat: repeat on empty command. * cancel_auto_continue: cancel auto continue on `source`. * postmortem: available on postmortem mode. * unsafe: unsafe command (not supported). Now only a few commands such as `step`, `next`, ... are `repeat`able. Maybe it fixes #764
#793 limited the repeatable commands, like |
Your proposal
It's a minor thing but it would be nice to have an option to disable command repeat when the Enter key is pressed in debug console.
Additional context
For users coming from
pry
it could be confusing to have the repeat feature on Enter.Also, IMO, it's not comfortable repeating some commands that have side-effects. Ex.
SomeModel.create! name: 'A test'
The text was updated successfully, but these errors were encountered: