This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients THRlWiTi, louielu, terry.reedy, wohlganger
Date 2020-07-21.02:59:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1595300356.15.0.884664435333.issue18875@roundup.psfhosted.org>
In-reply-to
Content
I found this in Notepad++ under Settings -> Preferences -> Auto-completion -> Auto-insert with separate checkboxes for (, {, [, ', ", html/xml tags, and up to 3 custom pairs.  Way too elaborate for IDLE.  The only question to me is whether to have just one option for all 5 openers or separate option to complete ([{ versus quotes.

Concerns: a) matching triple quotes is a bit baroque, though possible the most useful part of the feature; b) except for completing tripple quotes, no keystrokes are saved, and then only if one used End to skip three chars at once.  On the other hand, at least some people who have use the feather elsewhere consider it a net win.

Implementation notes: 1. IDLE editors uses two mechanisms to respond to keystrokes.  The delegator mechanism checks all keystrokes and responds to some.  IDLE otherwise binds keystrokes to event-handlers or to pseudoevent bound to event-handlers.  Perhaps these could be unified and made more efficient.

2. In the meanwhile... Menu items are bound to pseudoevents, along with corresponding hot heys.  This issue will *not* add a menu entry "Add matching closer".  So the openers can be bound directly to event handlers that look at the opener.
History
Date User Action Args
2020-07-21 02:59:16terry.reedysetrecipients: + terry.reedy, THRlWiTi, louielu, wohlganger
2020-07-21 02:59:16terry.reedysetmessageid: <1595300356.15.0.884664435333.issue18875@roundup.psfhosted.org>
2020-07-21 02:59:16terry.reedylinkissue18875 messages
2020-07-21 02:59:15terry.reedycreate