[quote=āSteveCooperOrgā]
I see the rationale for it, but Iād really appreciate an option to disable it. For me, down in the level of my fingers, ābackspaceā means remove exactly one character. It means āback a space.ā Thatās built-in on a nervous level.
What Iād rather see in python mode (or really anything with blocks) is preceding whitespace designated as āwordsā for the delete word command (ctrl+back). So that lines are interpreted like this;
def myfuncĀ§:
for x in range(1,3):
if p > 4:
print āhello, world!ā
return p
So that if my cursor is just before the print statement, ctrl+back deletes the whitespace token, then , then . I think this is how the python lexer works ā it inserts these whitespace tokens so that the parser understands the indentation involved.
Now that may not be where you want to go, but Iād really like an option for backspace to be delete-one-character, and ctrl+backspace to do the tabbed deletion that is there by default on backspace.[/quote]
You can always do a plugin for that
I am with you on this one, sometimes leftDeleteCharacters erases too much specially with ctrl+backspace which uses the ādelete word leftā macro.
Really I think some people like Jon said might find that suitable for them but for me, I rather have:
ctrl+backspace = delete by characters class, if itās whitespace, erase whitespace, if itās words, erase words, etcā¦
backspace = one character erase
shift+backspace = default sublime behavior which deletes tab (space) indents
of course same applies for delete, just in opposite directionā¦
the first 2 solutions are all possible with plugins, the other one is there by defaultā¦ so I am a happy camper
See: viewtopic.php?f=5&t=158#p843