Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDLE: remove Toggle Auto Coloring or add to edit menu & doc #71357

Closed
terryjreedy opened this issue May 31, 2016 · 4 comments
Closed

IDLE: remove Toggle Auto Coloring or add to edit menu & doc #71357

terryjreedy opened this issue May 31, 2016 · 4 comments
Assignees
Labels
3.7 (EOL) end of life topic-IDLE type-bug An unexpected behavior, bug, or error

Comments

@terryjreedy
Copy link
Member

BPO 27170
Nosy @terryjreedy
Superseder
  • bpo-28097: IDLE: document all key bindings, add menu items for more.
  • 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:

    assignee = 'https://github.com/terryjreedy'
    closed_at = <Date 2016-10-08.21:30:25.755>
    created_at = <Date 2016-05-31.20:02:11.708>
    labels = ['expert-IDLE', 'type-bug', '3.7']
    title = 'IDLE: remove Toggle Auto Coloring or add to edit menu & doc'
    updated_at = <Date 2016-10-08.21:30:25.751>
    user = 'https://github.com/terryjreedy'

    bugs.python.org fields:

    activity = <Date 2016-10-08.21:30:25.751>
    actor = 'terry.reedy'
    assignee = 'terry.reedy'
    closed = True
    closed_date = <Date 2016-10-08.21:30:25.755>
    closer = 'terry.reedy'
    components = ['IDLE']
    creation = <Date 2016-05-31.20:02:11.708>
    creator = 'terry.reedy'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 27170
    keywords = []
    message_count = 4.0
    messages = ['266773', '266791', '275970', '278327']
    nosy_count = 1.0
    nosy_names = ['terry.reedy']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '28097'
    type = 'behavior'
    url = 'https://bugs.python.org/issue27170'
    versions = ['Python 3.6', 'Python 3.7']

    @terryjreedy
    Copy link
    Member Author

    On Stackoverflow, person asked why syntax coloring sometimes stopped working, seemingly at random. https://stackoverflow.com/questions/37511276/how-to-make-python-idle-editor-to-change-line-colors-according-to-the-color-map

    The OP finally traced the problem to hitting ctrl-/ because of habit from using PyCharm, which bind ^/ to something else. In IDLE, cntrl-/ is bound to <<toggle-auto-coloring>>, but that is not easy to discover. (If I ever halfway knew about it, I had forgotten.) There is no menu entry and, I am sure, no mention in the doc. There is only the hard-to-search list in the Keys tab of the configuration dialog. T think that this feature should either be visible on the menu and documented and enhanced, or deleted.

    I am currently inclined to delete it as I cannot see hardly any use, and doubt that is sees real use, especially by beginners. It only affects the current window. It only affects future keystrokes (and pasted text), leaving current colorization as is. There is no indication that coloring is off until one types something that should be colored, and many will not know all the fine details. (This is why the SO OP had trouble pinning down the trigger.) If the toggle is kept, there should be an indication added to the status bar.

    Searching all IDLE issues for 'toggle' returned 24 hits, none for color. I should check hg annotate for the author of the code and issue #, if not part of the original submission.

    @terryjreedy terryjreedy added topic-2to3 type-bug An unexpected behavior, bug, or error labels May 31, 2016
    @terryjreedy
    Copy link
    Member Author

    Looking more, there are lots of editor bindings that are not on the menu that are more important than this. Example: Center insert, ^L, scrolls text to bring insert cursor as close to the middle of the window as possible. It does move the position of the cursor within the doc. I discovered the existence of this and determined its actual behavior by reading the code.

    Some are listed in the doc, section '2. Editing and navigation'. Anything that can be user configured can be discovered, but not everything is.

    If this feature is kept, it should be on a submenu with other missing items.

    @terryjreedy
    Copy link
    Member Author

    bpo-15308 added Interrupt Execution to Shell menu. Pretty easy

    @terryjreedy
    Copy link
    Member Author

    Toggling syntax highlighting is part of bpo-6858. Adding it to menu and doc is part of bpo-28097

    @terryjreedy terryjreedy self-assigned this Oct 8, 2016
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life topic-IDLE type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant