SublimeText / TrailingSpaces

Highlight trailing spaces and delete them in a flash.
MIT License
897 stars 94 forks source link

Delete trailing spaces command respects trailing_spaces_modified_lines_only #101

Closed george-norris-salesforce closed 4 years ago

george-norris-salesforce commented 8 years ago

Edit > Trailing Spaces > Delete
..does not delete anything in ST3

jbrooksuk commented 8 years ago

Works here :)

george-norris-salesforce commented 8 years ago

Sublime Text Build 3103 OS X 10.11.3

overkill22 commented 8 years ago

Same problem here on Mint 17.3 and 3114 I see the lines highlighted but when I try to Edit > Trailing Spaces > Delete nothing happen. I can see at the bottom the status bar that said Deleted 14 trailing spaces regions.

ericdlaspe commented 7 years ago

I have the same problem. I try Trailing Spaces: Delete Trailing Spaces, and none are deleted. The status bar says, "No trailing spaces to delete!" though many are highlighted.

ST3: 3126 macOS: 10.12

ericdlaspe commented 7 years ago

As a workaround, you can use Cmd/Ctrl-F (enable Regular Expressions), [ \t]+(?=$), Find All, Delete/Backspace

ericdlaspe commented 7 years ago

This may not be a bug per se. Edit > Trailing Spaces > Delete and Cmd/Ctrl-Shift-P Trailing Spaces: Delete Trailing Spaces seem to (unfortunately) respect this setting: "trailing_spaces_modified_lines_only": true

That means even when you explicitly invoke the plugin--perhaps out of a desire to clean up an existing file--lines you haven't edited will be ignored.

rchl commented 4 years ago

This is working per design and it's documented in https://github.com/SublimeText/TrailingSpaces/blob/master/README.md#modified-lines-only