python / cpython

The Python programming language
https://www.python.org
Other
63.35k stars 30.34k forks source link

IDLE: document all key bindings, add menu items for more. #72284

Open terryjreedy opened 8 years ago

terryjreedy commented 8 years ago
BPO 28097
Nosy @terryjreedy, @csabella, @miss-islington
PRs
  • python/cpython#11325
  • python/cpython#11345
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields: ```python assignee = 'https://github.com/terryjreedy' closed_at = None created_at = labels = ['3.8', 'expert-IDLE', 'type-bug', '3.7'] title = 'IDLE: document all key bindings, add menu items for more.' updated_at = user = 'https://github.com/terryjreedy' ``` bugs.python.org fields: ```python activity = actor = 'miss-islington' assignee = 'terry.reedy' closed = False closed_date = None closer = None components = ['IDLE'] creation = creator = 'terry.reedy' dependencies = [] files = [] hgrepos = [] issue_num = 28097 keywords = ['patch', 'patch', 'patch'] message_count = 7.0 messages = ['275980', '278326', '332560', '332641', '332673', '332678', '332679'] nosy_count = 3.0 nosy_names = ['terry.reedy', 'cheryl.sabella', 'miss-islington'] pr_nums = ['11325', '11345'] priority = 'normal' resolution = None stage = 'patch review' status = 'open' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue28097' versions = ['Python 3.7', 'Python 3.8'] ```

    Linked PRs

    terryjreedy commented 8 years ago

    (Follow-up to bpo-15308, which added ^C Interrupt Execution to doc and Shell menu, and to bpo-27120, which proposed to add ^/ Toggle Highlighting, until I realized that that should be part of bpo-6858, about highlighting non-.py files.)

    Every IDLE function should be documented. More should be on menu. Perhaps add Move/delete menus for cursor movement and directional deletion, if not a diagram.

    Another idea. A searchable current key binding list, possible sortable by key as well as function. It should include fixed builtin bindings as well as extension bindings. See bpo-27170 for motivation.

    Side issue 1: Menu entries for extensions do not reflect customization (? verify, from Roger).

    Side issue 2: Menus need to be tested.

    csabella commented 5 years ago

    PR11325 adds Previous/Next History to the Shell menu.

    terryjreedy commented 5 years ago

    Response to history issues raised in PR:

    1. Not erasing output/history is a feature: some shells save and restore recent history when close and open. Shell restart is an alternative to that. I fairly often replay statements after restart.
    2. I think turning off cycling is feature bloat. (I never do so for search.)
    3. The one history feature that multiple people have asked for, on another issue, is retrieval with up/down arrow, as seems to be standard. I now agree.

    For items going under edit, which is already 'full', submenus will be needed. Since history is Shell only, separate entries are ok, at least for now, instead of 'History' and a submenu with 'previous' and 'next'.

    terryjreedy commented 5 years ago

    Cheryl, the addition looks nice. But for anything else, lets discuss here first.

    terryjreedy commented 5 years ago

    New changeset c0381aaea4ad3e866bde70393c4f7efe9bcf3568 by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-28097: IDLE - Add Previous/Next History to Shell menu (bpo-11325) https://github.com/python/cpython/commit/c0381aaea4ad3e866bde70393c4f7efe9bcf3568

    miss-islington commented 5 years ago

    New changeset b716c716b5d5dc630d85dd16ca6526948745c020 by Miss Islington (bot) in branch '3.7': bpo-28097: IDLE - Add Previous/Next History to Shell menu (GH-11325) https://github.com/python/cpython/commit/b716c716b5d5dc630d85dd16ca6526948745c020