12345 67890 added the comment: 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: xov...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue29339> _______________________________________ ---------- title: Interactive: Move to same indentation level as previous line -> Interactive: Move to same indentation level as previousline _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29339> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com