I'm not entirely certain that I would want it to be done automatically either.
My current work around is really quite satisfactory, with the exception that the command leaves the entire document highlighted. THAT is annoying. I can't just clean the trailing white space and keep typing. Maybe I'm missing something here.
I would probably be okay for a toggle option to strip on save too. Whatever solution, I think it should be an option. JMHO
On Apr 26, 2005, at 5:51 AM, Allan Odgaard wrote:
On Apr 26, 2005, at 9:56, Allan Odgaard wrote:
However, I was talking about editing patterns about having return remove ws to the left. [...]
Here's another that I also use a lot:
if(some_condition) | expression; // caret is denoted by |
If I want to bracket the expression I do: return cmd-return delete (backwards) 2 x shift arrow up {
And I have: if(some_condition) { expression; }|
Maybe I should make a macro, but I do this almost w/o thinking, and it comes in many flavors (to bracket stuff), so one macro probably wouldn't be sufficient -- so all in all, having return remove whitespace is not cool with me. But the virtual indent I mentioned would be :)
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate