Skip to content

[3.7] bpo-28097: IDLE - Add Previous/Next History to Shell menu (GH-11325) #11345

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

Merged
merged 1 commit into from
Dec 28, 2018
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions Doc/library/idle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
22 changes: 12 additions & 10 deletions Lib/idlelib/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ <h3>Shell menu (Shell window only)<a class="headerlink" href="#shell-menu-shell-
<dd>Scroll the shell window to the last Shell restart.</dd>
<dt>Restart Shell</dt>
<dd>Restart the shell to clean the environment.</dd>
<dt>Previous History</dt>
<dd>Cycle through earlier commands in history which match the current entry.</dd>
<dt>Next History</dt>
<dd>Cycle through later commands in history which match the current entry.</dd>
<dt>Interrupt Execution</dt>
<dd>Stop a running program.</dd>
</dl>
Expand Down Expand Up @@ -309,22 +313,20 @@ <h3>Options menu (Shell and Editor)<a class="headerlink" href="#options-menu-she
configuration dialog by selecting Preferences in the application
menu. For more, see
<a class="reference internal" href="#preferences"><span class="std std-ref">Setting preferences</span></a> under Help and preferences.</dd>
<dt>Code Context (toggle)(Editor Window only)</dt>
<dt>Zoom/Restore Height</dt>
<dd>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.</dd>
<dt>Show/Hide Code Context (Editor Window only)</dt>
<dd>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
<a class="reference internal" href="#code-context"><span class="std std-ref">Code Context</span></a> in the Editing and Navigation section below.</dd>
</dl>
</div>
<div class="section" id="window-menu-shell-and-editor">
<h3>Window menu (Shell and Editor)<a class="headerlink" href="#window-menu-shell-and-editor" title="Permalink to this headline">¶</a></h3>
<dl class="docutils">
<dt>Zoom Height</dt>
<dd>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.</dd>
</dl>
<p>The rest of this menu lists the names of all open windows; select one to bring
it to the foreground (deiconifying it if necessary).</p>
<p>Lists the names of all open windows; select one to bring it to the foreground
(deiconifying it if necessary).</p>
</div>
<div class="section" id="help-menu-shell-and-editor">
<h3>Help menu (Shell and Editor)<a class="headerlink" href="#help-menu-shell-and-editor" title="Permalink to this headline">¶</a></h3>
Expand Down Expand Up @@ -918,7 +920,7 @@ <h3>Navigation</h3>
<br />
<br />

Last updated on Dec 20, 2018.
Last updated on Dec 28, 2018.
<a href="https://docs.python.org/3/bugs.html">Found a bug</a>?
<br />

Expand Down
3 changes: 3 additions & 0 deletions Lib/idlelib/mainmenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@
('_View Last Restart', '<<view-restart>>'),
('_Restart Shell', '<<restart-shell>>'),
None,
('_Previous History', '<<history-previous>>'),
('_Next History', '<<history-next>>'),
None,
('_Interrupt Execution', '<<interrupt-execution>>'),
]),

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add Previous/Next History entries to Shell menu.