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

Add restart hotkey #620

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pudb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def _runscript(mainpyfile, dbg, args=None, pre_run="", run_as_module=False):
urwid.ListBox(urwid.SimpleListWalker([urwid.Text(
"Your PuDB session has ended.\n\n%s"
"Would you like to quit PuDB or restart your program?\n"
"You may hit 'q' to quit."
"You may hit 'q' to quit or 'r' to restart."
% status_msg),
urwid.Text("\n\nIf you decide to restart, this command "
"will be run prior to actually restarting:"),
Expand All @@ -206,6 +206,7 @@ def _runscript(mainpyfile, dbg, args=None, pre_run="", run_as_module=False):
extra_bindings=[
("q", "quit"),
("esc", "examine"),
("r", "restart"),
Copy link
Owner

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.

])

if result == "quit":
Expand Down