From 53357b3ee53d767c2da5cd77f9c47117903e9a44 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Sat, 30 Jul 2022 21:09:07 -0400 Subject: 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. --- Lib/idlelib/NEWS.txt | 4 ++++ Lib/idlelib/mainmenu.py | 3 ++- Misc/NEWS.d/next/IDLE/2022-07-30-15-10-39.gh-issue-95471.z3scVG.rst | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/IDLE/2022-07-30-15-10-39.gh-issue-95471.z3scVG.rst diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index 1d31104..dc506dc 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 a1b1691..429c866 100644 --- a/Lib/idlelib/mainmenu.py +++ b/Lib/idlelib/mainmenu.py @@ -42,16 +42,17 @@ menudefs = [ ('_Undo', '<>'), ('_Redo', '<>'), None, + ('Select _All', '<>'), ('Cu_t', '<>'), ('_Copy', '<>'), ('_Paste', '<>'), - ('Select _All', '<>'), None, ('_Find...', '<>'), ('Find A_gain', '<>'), ('Find _Selection', '<>'), ('Find in Files...', '<>'), ('R_eplace...', '<>'), + None, ('Go to _Line', '<>'), ('S_how Completions', '<>'), ('E_xpand 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 0000000..73a9d80 --- /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. -- cgit v0.12