← 输入框|github.com|刷新
Skip to content

gh-38066: Add Shift-Tab smart-dedent in IDLE editor - #160776

Open
harisawan-bit wants to merge 1 commit into
python:mainfrom
harisawan-bit:fix/gh-38066-idle-dedent
Open

harisawan-bit wants to merge 1 commit into
python:mainfrom
harisawan-bit:fix/gh-38066-idle-dedent

Conversation

@harisawan-bit

Copy link
Copy Markdown

Fixes gh-38066.

Summary of Changes

IDLE provides \smart-indent\ via Tab, but lacked a corresponding \smart-dedent\ bound to Shift-Tab.

This patch:

  1. Adds \smart-dedent\ key definitions in \config-keys.def\ and \config.py\ bound to <Shift-Key-Tab>\ and <Shift-ISO_Left_Tab>.
  2. Binds <>\ in \�ditor.py\ to \smart_dedent_event.
  3. Implements \smart_dedent_event\ to dedent selected multi-line regions or dedent leading indentation on single lines.

Copilot AI balanced review requested due to automatic review settings October 27, 2026 20:38
@python-cla-bot

Copy link
Copy Markdown

The following commit authors need to sign the Contributor License Agreement:

CLA not signed

@bedevere-app bedevere-app Bot added awaiting review type-feature A feature request or enhancement labels Oct 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IDLE: Dedenting with Shift+Tab

2 participants