Message238102
| Author |
Martin Sekera |
| Recipients |
Martin Sekera, arigo, martin.panter, pitrou, r.david.murray |
| Date |
2015年03月14日.22:58:22 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1426373903.03.0.748118842726.issue23441@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Is it necessary to force a predefined tab width (4) onto the user here? I prefer 2-character tabs for example, and have all my terminals set up accordingly (setterm --regtabs 2). I presume many people prefer 8-column tabs, hence the default width in most software.
Additionally, the user shouldn't have to backspace 4 characters to remove one level of indentation. Not only is it annoying, it is also prone to errors if the user miscounts (and ends up with an IndentationError).
I've been using the attached patch (just 5 lines) to emulate the behavior familiar from unix shells: pressing tab activates the completion function, but indents if the line is empty (i.e. '' or all whitespace). It also indents properly if the cursor is moved to whitespace in front of a line, as one would expect. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年03月14日 22:58:23 | Martin Sekera | set | recipients:
+ Martin Sekera, arigo, pitrou, r.david.murray, martin.panter |
| 2015年03月14日 22:58:23 | Martin Sekera | set | messageid: <1426373903.03.0.748118842726.issue23441@psf.upfronthosting.co.za> |
| 2015年03月14日 22:58:23 | Martin Sekera | link | issue23441 messages |
| 2015年03月14日 22:58:22 | Martin Sekera | create |
|