Hi Chris:

Thanks for the text filter, it seems like a good idea: have some option either 
in the main menu or in the save menu.

I don't know anything about Perl, but after applying the filter you sent me it 
seems that (a) the file is not saved, and (b) the trailing spaces **are** 
trimmed, which is exactly the opposite of what I want (save the file with 
whatever white trailing space it has).

What am I doing wrong?

Best,

Nestor

> On 31 Jul 2019, at 20:46, Christopher Stone <[email protected]> 
> wrote:
> 
> On 07/31/2019, at 08:50, Nestor Aguilera <[email protected]> wrote:
>> As I said, it is no big deal as I can always change the global preferences, 
>> save the file and then change back the global preference.
> 
> Hey Nestor,
> 
> In that case why don't you just use a BBEdit Text Filter instead of fooling 
> around with preferences?
> 
> #!/usr/bin/env perl -sw
> use v5.12;
> use utf8;
> 
> while (<>) {
>     s!\h+$!!;
>     print;
> }
> 
> 
> Bind it to a keyboard shortcut and use it on-demand.
> 
> --
> Best Regards,
> Chris
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "[email protected]" rather than posting to the group.
> Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/4C319E6C-D3B7-49E2-B7D7-96289C0AF3BB%40suddenlink.net.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/BA8A6365-76D4-46BC-BCC8-3091BE0E1BB3%40gmail.com.

Reply via email to