Skip to content

Commit 160d24c

Browse files
Add a Unicode character browser extension to IDLE
The CharSelect extension adds a Character Browser command to the Edit menu. It opens a window for browsing Unicode blocks in a grid, viewing a character's details, and searching by name or code point. A character can be inserted at the cursor of the editor or shell, or copied to the clipboard. On the detail tabs, a representation or normalization form can be clicked to copy it or double-clicked to insert it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent a50b089 commit 160d24c

10 files changed

Lines changed: 1291 additions & 7 deletions

File tree

Doc/library/idle.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,13 @@ Show Call Tip
170170
Show Surrounding Parens
171171
Highlight the surrounding parenthesis.
172172

173+
Character Browser
174+
Open a window to browse Unicode blocks and search for characters by name or code point.
175+
Double-click a character, or select it and press Insert, to insert it into the current window.
176+
Press Copy character to copy it to the clipboard.
177+
The detail tabs show the character's representations, such as escapes, UTF-8 bytes, XML and HTML references, and normalization forms.
178+
Click a highlighted value to copy it, or double-click it to insert it.
179+
173180
.. _format-menu:
174181

175182
Format menu (Editor window only)

Lib/idlelib/News3.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ Released on 2026-10-01
44
=========================
55

66

7+
gh-152940: Add a Unicode character browser to IDLE. It appears on the
8+
Edit menu as "Character Browser" and can browse Unicode blocks, search
9+
for characters by name or code point, insert a character into the
10+
window, and copy a character to the clipboard. Patch by Serhiy
11+
Storchaka.
12+
713
gh-152745: When "Run... Customized" with "Restart shell" unchecked
814
while Shell is running code, including waiting for an input('prompt:')
915
response, just report that the shell is executing instead of

0 commit comments

Comments
 (0)