remove trailing whitespace on save: but only on edited lines

View: New views
3 Messages — Rating Filter:   Alert me  

remove trailing whitespace on save: but only on edited lines

by Trent Mick-2 :: Rate this Message:

| View Threaded | Show Only this Message

I really want Komodo to have "[ ] rm trailing whitespace, but only on
editing lines (use scc diff to figure that out)"

Ever since git... there is a fanatic war against trailing whitespace
(before 'git diff' highlights trailing whitespace in red). Komodo's
auto-indent leaves trailing whitespace around. It would be nice if one
or both of the following were added:

1. When leaving a line on which Komodo just auto-indented but on which
no content was added: remove the trailing whitespace. Not sure if this
would be practical to implement.

2. Use scc-diff (or the edit history?) to limit the lines on which
trailing whitespace is removed.


Perhaps just have the "remove trailing whitespace on save" be a
project setting woudl be sufficient.

Cheers,
Trent

--
Trent Mick
_______________________________________________
Komodo-discuss mailing list
Komodo-discuss@...
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss

Re: remove trailing whitespace on save: but only on edited lines

by David Brewer :: Rate this Message:

| View Threaded | Show Only this Message

+1 on this idea.

I frequently find myself working on projects where not everyone is
using an editor that trims all trailing whitespace... it's pretty
annoying that whenever I touch a file to make a small change and check
it in, the changeset shows changes on random lines throughout the file
where Komodo cleaned up.  But, for files that I myself am creating I
love the trailing whitespace cleanup.  This would be a great
compromise!

David

On Wed, May 11, 2011 at 12:36 PM, Trent Mick <trentm@...> wrote:

> I really want Komodo to have "[ ] rm trailing whitespace, but only on
> editing lines (use scc diff to figure that out)"
>
> Ever since git... there is a fanatic war against trailing whitespace
> (before 'git diff' highlights trailing whitespace in red). Komodo's
> auto-indent leaves trailing whitespace around. It would be nice if one
> or both of the following were added:
>
> 1. When leaving a line on which Komodo just auto-indented but on which
> no content was added: remove the trailing whitespace. Not sure if this
> would be practical to implement.
>
> 2. Use scc-diff (or the edit history?) to limit the lines on which
> trailing whitespace is removed.
>
>
> Perhaps just have the "remove trailing whitespace on save" be a
> project setting woudl be sufficient.
>
> Cheers,
> Trent
>
> --
> Trent Mick
> _______________________________________________
> Komodo-discuss mailing list
> Komodo-discuss@...
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss
>
_______________________________________________
Komodo-discuss mailing list
Komodo-discuss@...
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss

Re: remove trailing whitespace on save: but only on edited lines

by Eric Promislow :: Rate this Message:

| View Threaded | Show Only this Message

Written up at http://bugs.activestate.com/show_bug.cgi?id=90062

- Eric
_______________________________________________
Komodo-discuss mailing list
Komodo-discuss@...
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss