Home Download Buy Blog Forum Support

Alt+Backspace behaviour on Mac

Alt+Backspace behaviour on Mac

Postby iKenndac on Wed Aug 24, 2011 10:21 am

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
iKenndac
 
Posts: 3
Joined: Wed Aug 24, 2011 10:16 am

Re: Alt+Backspace behaviour on Mac

Postby iamntz on Wed Aug 24, 2011 10:33 am

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
iamntz
 
Posts: 909
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Alt+Backspace behaviour on Mac

Postby iKenndac on Thu Aug 25, 2011 10:22 am

Thanks for your reply. I guess I should file a feature request, then!
iKenndac
 
Posts: 3
Joined: Wed Aug 24, 2011 10:16 am

Re: Alt+Backspace behaviour on Mac

Postby aparajita on Thu Aug 25, 2011 6:52 pm

Put this in your Packages/User folder:

https://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.
aparajita
 
Posts: 177
Joined: Sun Jul 24, 2011 10:42 pm

Re: Alt+Backspace behaviour on Mac

Postby iKenndac on Thu Aug 25, 2011 9:25 pm

Aha, that works perfectly. Thanks! :D
iKenndac
 
Posts: 3
Joined: Wed Aug 24, 2011 10:16 am

Re: Alt+Backspace behaviour on Mac

Postby aparajita on Fri Aug 26, 2011 7:12 pm

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.
aparajita
 
Posts: 177
Joined: Sun Jul 24, 2011 10:42 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 19 guests