summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2022-07-30 21:09:07 -0400
committerGitHub <noreply@github.com>2022-07-30 21:09:07 -0400
commit53357b3ee53d767c2da5cd77f9c47117903e9a44 (patch)
treed9b7608d8627c806327c66561c6c0405566aa907
parent6c439b978bf55b29f21c595e9375202d63c8208d (diff)
downloadcpython-git-53357b3ee53d767c2da5cd77f9c47117903e9a44.tar.gz
gh-95471: IDLE - Tweak Edit menu (#95481)
Move `Select All` above `Cut` as it is used with `Cut` and `Copy` but not `Paste`. Add a separator between `Replace` and `Go to Line` to separate items that belong to the 'Edit-find' (above) and 'Edit-show' (below) IDLE github project topics.
-rw-r--r--Lib/idlelib/NEWS.txt4
-rw-r--r--Lib/idlelib/mainmenu.py3
-rw-r--r--Misc/NEWS.d/next/IDLE/2022-07-30-15-10-39.gh-issue-95471.z3scVG.rst1
3 files changed, 7 insertions, 1 deletions
diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt
index 1d3110413b..dc506dccfe 100644
--- a/Lib/idlelib/NEWS.txt
+++ b/Lib/idlelib/NEWS.txt
@@ -4,6 +4,10 @@ Released on 2022-10-03
=========================
+gh-95471: Tweak Edit menu. Move 'Select All' above 'Cut' as it is used
+with 'Cut' and 'Copy' but not 'Paste'. Add a separator between 'Replace'
+and 'Go to Line' to help IDLE issue triagers.
+
gh-95411: Enable using IDLE's module browser with .pyw files.
gh-89610: Add .pyi as a recognized extension for IDLE on macOS. This allows
diff --git a/Lib/idlelib/mainmenu.py b/Lib/idlelib/mainmenu.py
index a1b169176c..429c8660ce 100644
--- a/Lib/idlelib/mainmenu.py
+++ b/Lib/idlelib/mainmenu.py
@@ -42,16 +42,17 @@ menudefs = [
('_Undo', '<<undo>>'),
('_Redo', '<<redo>>'),
None,
+ ('Select _All', '<<select-all>>'),
('Cu_t', '<<cut>>'),
('_Copy', '<<copy>>'),
('_Paste', '<<paste>>'),
- ('Select _All', '<<select-all>>'),
None,
('_Find...', '<<find>>'),
('Find A_gain', '<<find-again>>'),
('Find _Selection', '<<find-selection>>'),
('Find in Files...', '<<find-in-files>>'),
('R_eplace...', '<<replace>>'),
+ None,
('Go to _Line', '<<goto-line>>'),
('S_how Completions', '<<force-open-completions>>'),
('E_xpand Word', '<<expand-word>>'),
diff --git a/Misc/NEWS.d/next/IDLE/2022-07-30-15-10-39.gh-issue-95471.z3scVG.rst b/Misc/NEWS.d/next/IDLE/2022-07-30-15-10-39.gh-issue-95471.z3scVG.rst
new file mode 100644
index 0000000000..73a9d80589
--- /dev/null
+++ b/Misc/NEWS.d/next/IDLE/2022-07-30-15-10-39.gh-issue-95471.z3scVG.rst
@@ -0,0 +1 @@
+In the Edit menu, move ``Select All`` and add a new separator.