From c0381aaea4ad3e866bde70393c4f7efe9bcf3568 Mon Sep 17 00:00:00 2001 From: Cheryl Sabella Date: Fri, 28 Dec 2018 15:11:30 -0500 Subject: bpo-28097: IDLE - Add Previous/Next History to Shell menu (#11325) --- Doc/library/idle.rst | 6 ++++++ Lib/idlelib/help.html | 22 ++++++++++++---------- Lib/idlelib/mainmenu.py | 3 +++ .../IDLE/2018-12-26-13-53-34.bpo-28097.95I9NT.rst | 1 + 4 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 Misc/NEWS.d/next/IDLE/2018-12-26-13-53-34.bpo-28097.95I9NT.rst diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst index ef9bd26..56d7c9f 100644 --- a/Doc/library/idle.rst +++ b/Doc/library/idle.rst @@ -235,6 +235,12 @@ View Last Restart Restart Shell Restart the shell to clean the environment. +Previous History + Cycle through earlier commands in history which match the current entry. + +Next History + Cycle through later commands in history which match the current entry. + Interrupt Execution Stop a running program. diff --git a/Lib/idlelib/help.html b/Lib/idlelib/help.html index 051690b..80c87f6 100644 --- a/Lib/idlelib/help.html +++ b/Lib/idlelib/help.html @@ -273,6 +273,10 @@ line.
Scroll the shell window to the last Shell restart.
Restart Shell
Restart the shell to clean the environment.
+
Previous History
+
Cycle through earlier commands in history which match the current entry.
+
Next History
+
Cycle through later commands in history which match the current entry.
Interrupt Execution
Stop a running program.
@@ -309,7 +313,11 @@ size, additional help sources, and extensions. On macOS, open the configuration dialog by selecting Preferences in the application menu. For more, see Setting preferences under Help and preferences. -
Code Context (toggle)(Editor Window only)
+
Zoom/Restore Height
+
Toggles the window between normal size and maximum height. The initial size +defaults to 40 lines by 80 chars unless changed on the General tab of the +Configure IDLE dialog.
+
Show/Hide Code Context (Editor Window only)
Open a pane at the top of the edit window which shows the block context of the code which has scrolled above the top of the window. See Code Context in the Editing and Navigation section below.
@@ -317,14 +325,8 @@ of the code which has scrolled above the top of the window. See

Window menu (Shell and Editor)

-
-
Zoom Height
-
Toggles the window between normal size and maximum height. The initial size -defaults to 40 lines by 80 chars unless changed on the General tab of the -Configure IDLE dialog.
-
-

The rest of this menu lists the names of all open windows; select one to bring -it to the foreground (deiconifying it if necessary).

+

Lists the names of all open windows; select one to bring it to the foreground +(deiconifying it if necessary).

Help menu (Shell and Editor)

@@ -918,7 +920,7 @@ also used for testing.



- Last updated on Dec 20, 2018. + Last updated on Dec 28, 2018. Found a bug?
diff --git a/Lib/idlelib/mainmenu.py b/Lib/idlelib/mainmenu.py index 6081a5f..f834220 100644 --- a/Lib/idlelib/mainmenu.py +++ b/Lib/idlelib/mainmenu.py @@ -82,6 +82,9 @@ menudefs = [ ('_View Last Restart', '<>'), ('_Restart Shell', '<>'), None, + ('_Previous History', '<>'), + ('_Next History', '<>'), + None, ('_Interrupt Execution', '<>'), ]), diff --git a/Misc/NEWS.d/next/IDLE/2018-12-26-13-53-34.bpo-28097.95I9NT.rst b/Misc/NEWS.d/next/IDLE/2018-12-26-13-53-34.bpo-28097.95I9NT.rst new file mode 100644 index 0000000..83163cf --- /dev/null +++ b/Misc/NEWS.d/next/IDLE/2018-12-26-13-53-34.bpo-28097.95I9NT.rst @@ -0,0 +1 @@ +Add Previous/Next History entries to Shell menu. -- cgit v0.12