I have continued to improve the Hungry Backspace plugin.
WHAT IT DOES:
Hungry deletion of whitespace, or as it more commonly called, hungry-delete mode, is a simple feature that some people find extremely useful.
In a nutshell, when ccmode-0.2.jar plugin is loaded, hitting the Backspace key will consume all preceding whitespace, including newlines and tabs. This can really cut down on the number of Backspace's you have to type if, for example you made a mistake on the preceding line.
+ Checks that document is writeable.
+ If text is selection, pressing backspace will delete the selection (in keeping with regular backspace).
+ Now uses EditorWriteAction rather than AnAction.
From what I read, this is the proper way to implement editor actions. The initial implementation as an AnAction caused backspace key to stop working in other dialogs like Live Templates, File Templates, etc.
As a side effect of making it an EditorWriteAction, you can no longer assign a key to it. If you install the plugin, just leave the keymap alone. The Backspace key will now act very hungry, gobbling up whitespace in one click.
Please let me know if you find any problems or have suggestions. I will put it on plugins page when I have time but for now you can use the attached plugin ccmode-0.2.jar