This small plugin brings to Sublime Text the "hungry"/"smart" backspace feature from IntelliJ. The hungry backspace retains the scope (indentation) when the backspace key is pressed on an empty line.
It would be nice, if you add command to run backspace command only if carriage is not in line beginning.
2. Justification
I record macros. I need same behavior if I have text before carriage and if my carriage in beginning of line, because now I can get different macros results.
3. Actual behavior
If I run native Sublime Text Delete to Hard EOL macro (Ctrl+Shift+Backspace in Windows by default):
I have same behavior if I run native Sublime Text Delete to EOL macro.
4. Desirable behavior
If I have text before carriage, all text before carriage was deleted, carriage move to beginning of line.
If I not text before carriage, nothing occurs. Carriage not move to previous line.
Default ST3 behavior is to automatically add a closing character when inserting a character like a quote, parentheses, bracket, etc. This works as expected, but now, for example, if you insert a left bracket, ST3 inserts the right bracket. At this point your cursor is between both brackets. I should be able to hit backspace and have BOTH brackets be deleted. This is default ST3 behavior but Hungry Backspace breaks this - only the first bracket is deleted.