+2

Alt+backspace on a word should not delete whitespace

Alexander S. 13 years ago updated 13 years ago 2
Consider the following text, where | indicates caret:
{"foo": bar|}
Now if I hit alt+backspace to delete the word "bar", I get:
{"foo":|}
That's not good. It means I have to enter the space again. It doesn't really make sense for any kind of use case, I think. There are all sorts of situations (eg., arithmetic expressions like foo + bar + baz) where you'd like to position the caret at the end of a word and delete the word to replace it with something else.

I could use super+D to expand the selection + delete, but that works only if the caret is on a word, not something more complex like a quoted string.

I agree. In addition, now Sublime Text is on Mac OS X this behaviour is the opposite of system default, which is annoying to say the least! 

Userecho har screwed up my post, and doesn't allow me to edit. So here's what it says at the top:


Consider the following text, where | indicates caret:

{"foo": bar|}

Now if I hit alt+backspace to delete the word "bar", I get:

{"foo":|}