Skip to content

Commit e1bf5ca

Browse files
committed
bpo-28097: IDLE: Add Previous/Next History to Shell menu
1 parent 44a79cc commit e1bf5ca

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

Doc/library/idle.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,12 @@ View Last Restart
235235
Restart Shell
236236
Restart the shell to clean the environment.
237237

238+
Previous History
239+
Retrieves the prior command in history which matches the current entry.
240+
241+
Next History
242+
Retrieves the next command in history which matches the current entry.
243+
238244
Interrupt Execution
239245
Stop a running program.
240246

Lib/idlelib/mainmenu.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@
8282
('_View Last Restart', '<<view-restart>>'),
8383
('_Restart Shell', '<<restart-shell>>'),
8484
None,
85+
('_Previous History', '<<history-previous>>'),
86+
('_Next History', '<<history-next>>'),
87+
None,
8588
('_Interrupt Execution', '<<interrupt-execution>>'),
8689
]),
8790

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add Previous/Next History entries to Shell menu.

0 commit comments

Comments
 (0)