On 8 Jul 2012, at 23:12, John Yeates wrote:
[ …built-in strip whitespace… ] Allan, is there any chance of this in a future build?
I think it should be done as a bundle command because there are many related things that benefit from the same infrastructure, and even how to strip whitespace is a topic for debate.
It does however seem that the current number of semantic classes can be expanded to better suit some user’s desires. For now, the best option is probably to either do a command that runs as an export command (that strips the whitespace) or alternatively, the did-save, but then it only affects the buffer in memory, so a will-save action should probably be introduced.
As for ease of enabling it, this again is more a matter of improving existing bundle item infrastructure – we have a per-item enable/disable and we have bundle installing done via Preferences, but again, room for much improvement to make it easy to simply enable the proper “strip whitespace on save”-item in the list of items that is available to “install”.