Sublime Forum

Alt+Backspace behaviour on Mac

#1

Hey,

I discovered Sublime Text 2 for Mac about a week ago and absolutely adore it so far. However, there’s one little niggle that constantly trips me up: The Alt+Backspace behaviour doesn’t match that of the rest of the system.

So, given this situation, where | is the insertion point:

Hello world |

… Pressing Alt+Backspace in pretty much any application gives this:

Hello |

… where in Sublime Text, you get this:

Hello|

Notice that the system keeps the trailing whitespace so you can type your new word, where Sublime doesn’t and you have to hit the space bar again.

Is there a setting for this that I’ve missed? If not, should I post a feature request?

– Daniel

0 Likes

#2

If i recall well, this is how it was designed in the first place. (even if i consider this also annoying).
Take a look here

0 Likes

#3

Thanks for your reply. I guess I should file a feature request, then!

0 Likes

#4

Put this in your Packages/User folder:

gist.github.com/1171457

Then add this to your user settings:

“delete_space_with_word”: false,

That will prevent the space before or after a word from being deleted with the word.

0 Likes

#5

Aha, that works perfectly. Thanks! :smiley:

0 Likes

#6

Jon heard our cries and changed the behavior in build 2106 so it no longer deletes the space next to the word. So once you upgrade to 2106 you can remove the custom delete_word.py from the User folder.

0 Likes