[TxMt] Re: Trim Trailing Space on Save Option

George Fields george.b.fields at gmail.com
Thu Sep 21 22:53:32 UTC 2017


That's nice, thanks for replying, and I certainly appreciate other people's
work, but the fundamental question remains: is that something that can be
put in as a preference setting? Or am I unreasonable / lazy for wanting it?

- g

On Sep 21, 2017 17:19, "Koen Punt" <koen at koenpunt.nl> wrote:

> Oh I now see I misread; it's about whitespace, not newlines. But the
> bundle is a modified fork of the whitespace one:
>
> https://github.com/bomberstudios/Strip-Whitespace-On-Save.tmbundle
>
> Sent from Nylas Mail
> <https://n1.nylas.com/link/bf0e333102317dc6a7c9eba80e15080db3e42923e8627ea4c407e9960acefb88/0?redirect=https%3A%2F%2Fnylas.com%3Fref%3Dn1>,
> the best free email app for work
>
> On Sep 21 2017, at 10:57 pm, Koen Punt <koen at koenpunt.nl> wrote:
>
>> I have bundle installed which injects that functionality for all
>> languages:
>>
>> https://github.com/hajder/Ensure-New-Line-at-the-EOF.tmbundle
>>
>> So no need to change the semantic classes of other bundles or whatnot.
>>
>> K.
>>
>> Sent from Nylas Mail
>> <https://n1.nylas.com/link/bf0e333102317dc6a7c9eba80e15080db3e42923e8627ea4c407e9960acefb88/0?redirect=https%3A%2F%2Fnylas.com%3Fref%3Dn1>,
>> the best free email app for work
>>
>> On Sep 21 2017, at 10:54 pm, George Fields <george.b.fields at gmail.com>
>> wrote:
>>
>> I know that you can rig TextMate 2 to trim trailing space on save by
>> editing the Text -> Converting / Stripping -> Trim... bundle by
>> changing the semantic class (or creating a whole new bundle). It works
>> well, but I was wondering if there are any plans to add this as an
>> option in the preferences (with a checkbox, etc.) for convenience?
>>
>> It's a rather common one to have that's found on most other editors
>> I've seen, and it would be super cool to not have to mess with the
>> bundles for such a basic thing.
>>
>> Kind regards,
>>
>> - g
>>
>> _______________________________________________
>> textmate mailing listtextmate at lists.macromates.comhttp://lists.macromates.com/listinfo/textmate
>>
>>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20170921/8aa9364e/attachment.html>


More information about the textmate mailing list