From e1bf5cad97a235ebee5cf68781bb0fac23ec8b94 Mon Sep 17 00:00:00 2001 From: Cheryl Sabella Date: Wed, 26 Dec 2018 13:55:06 -0500 Subject: [PATCH 1/3] bpo-28097: IDLE: Add Previous/Next History to Shell menu --- Doc/library/idle.rst | 6 ++++++ Lib/idlelib/mainmenu.py | 3 +++ .../next/IDLE/2018-12-26-13-53-34.bpo-28097.95I9NT.rst | 1 + 3 files changed, 10 insertions(+) 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 ef9bd2698f5bfc..6677d97e5637f2 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 + Retrieves the prior command in history which matches the current entry. + +Next History + Retrieves the next command in history which matches the current entry. + Interrupt Execution Stop a running program. diff --git a/Lib/idlelib/mainmenu.py b/Lib/idlelib/mainmenu.py index 6081a5f1003dc7..f834220fc2bb75 100644 --- a/Lib/idlelib/mainmenu.py +++ b/Lib/idlelib/mainmenu.py @@ -82,6 +82,9 @@ ('_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 00000000000000..83163cf736fe76 --- /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. From 1977a4808328f51be247ae5d0233f788f95a76da Mon Sep 17 00:00:00 2001 From: Cheryl Sabella Date: Fri, 28 Dec 2018 09:21:32 -0500 Subject: [PATCH 2/3] Doc changes --- Doc/library/idle.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst index 6677d97e5637f2..56d7c9f4c2c297 100644 --- a/Doc/library/idle.rst +++ b/Doc/library/idle.rst @@ -236,10 +236,10 @@ Restart Shell Restart the shell to clean the environment. Previous History - Retrieves the prior command in history which matches the current entry. + Cycle through earlier commands in history which match the current entry. Next History - Retrieves the next command in history which matches the current entry. + Cycle through later commands in history which match the current entry. Interrupt Execution Stop a running program. From e80ccbae26fcef18be8f2ada75f685a5e87b7f97 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Fri, 28 Dec 2018 13:46:19 -0500 Subject: [PATCH 3/3] Update help.html. Includes code context and zoom height changes. --- Lib/idlelib/help.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Lib/idlelib/help.html b/Lib/idlelib/help.html index 051690bc66a22f..80c87f6ebdf1b2 100644 --- a/Lib/idlelib/help.html +++ b/Lib/idlelib/help.html @@ -273,6 +273,10 @@

Shell menu (Shell window only)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 @@

Options menu (Shell and Editor)

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 @@

Navigation



- Last updated on Dec 20, 2018. + Last updated on Dec 28, 2018. Found a bug?