Message286695
That one is pretty tricky. The only way that I can think of is to delay indentation until the first character is typed, and not to indent if it is a space or tab.
From: Serhiy Storchaka
Sent: Wednesday, February 1, 2017 2:39 PM
To: xoviat@gmail.com
Subject: [issue29339] Interactive: Move to same indentation level as previousline
Serhiy Storchaka added the comment:
Any autoindetation breaks pasting from the clipboard since there is no way to distinguish characters entered from the keyboard from characters pasted from the clipboard. In IDLE or other visual shell we can add a special menu entry and hotkeys for pasting from clipboards without autoindenting, but in a REPL in text terminal this is not possible.
IPython3 solved this issue by adding special magic functions, but this is not a way for CPython.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue29339>
_______________________________________ |
|
Date |
User |
Action |
Args |
2017-02-01 21:00:46 | xoviat | set | recipients:
+ xoviat, brett.cannon, terry.reedy, serhiy.storchaka, emilyemorehouse, Jim Fasarakis-Hilliard |
2017-02-01 21:00:46 | xoviat | link | issue29339 messages |
2017-02-01 21:00:46 | xoviat | create | |
|