-
Notifications
You must be signed in to change notification settings - Fork 230
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
Add restart hotkey #620
base: main
Are you sure you want to change the base?
Add restart hotkey #620
Conversation
How about adding an "r" binding in the quit dialog, here: Line 197 in 8c8f9d4
Then you could hit "qr" in quick succession and get the same result? |
I didn't know about that. However it still two keystrokes instead of just one. I've happy to change I also would like to add code switch focus to the I do understand that it's just my workflow and might not apply for the majority of the users so I follow your suggestions. |
I like the |
By the way, we should indicate the Q in "quit" is a shortcut in the same way we do for the "variables" and "breakpoints" headers. |
Should I revert my changes and add mapping of |
You can just push to this branch. |
Done. I've been using it for a while now locally. I'm happy with this solution. |
@@ -196,6 +196,7 @@ def runscript(mainpyfile, args=None, pre_run="", steal_output=False, | |||
extra_bindings=[ | |||
("q", "quit"), | |||
("esc", "examine"), | |||
("r", "restart"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add "r" to the text in the text box, to document the feature.
It's useful to be able to restart debugging session quickly without using
q
command and selecting<Restart>
from the UI.It also remove the need to have
Prompt before quitting
enabled sopudb
can be closed faster as well.