IDLE: Auto make pair or brackets or quotation marks.

Ouverte
#94,524 0 commentaires 0 réactions 1 personne assignée Voir sur GitHub

@terryjreedy y travaille déjà.

Depuis le 5/7/2022.

Évaluation

Cette issue n'a pas encore été évaluée.

Description

topic-IDLE type-feature

Feature or enhancement

  • Auto complete 3 types of brackets and 2 types of quotation marks in pairs.
  • Moving cursor without insert char when entering closing bracket (but not quotation mark).
  • Auto delete the closing bracket when deleting the opening bracket or quotation mark. (if you need to enter the opening bracket independently, enter the opening bracket and press Delete to delete the closing bracket)
  • Select text with brackets or quotation marks, press Backspace to remove the outer one.
  • Select text with brackets or quotation marks, type another type of brackets or quotation marks to replace the old one.

Pitch

Like a statement: table = [list(map(int, row['score'])) for row in data['results'].splitlines()]

I need to write to write a lot of pairs of (), [], "", or sometimes I need to change a pair of them. It's not ideal whether I write a lot of opening brackets first, then coding and close them, or write pair of brackets at once and move the cursor inside the brackets. But it would be easier to edit if the brackets could be autocompleted.

Previous discussion

Discuss at: https://discuss.python.org/t/i-made-some-improvement-for-idle-can-i-contribute-to-idlelib-library-in-python-project

Usage: https://github.com/znsoooo/IDLE-Advance

Implementation: https://github.com/znsoooo/IDLE-Advance/blob/master/idlealib/SmartPairing.py

Langage dominant
Python
Étoiles
77.2k
Forks
36k
Merge moyen
1 j 9 h
PR mergées (30 j)
558

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de python/cpython

Toutes les issues de python/cpython

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.