|
| 1 | + |
| 2 | + |
| 3 | + Trailing Spaces update [v1.0.0] |
| 4 | + ------------------------------- |
| 5 | + |
| 6 | + Hope you've been happy gaving trailin' a hard time so far. |
| 7 | + |
| 8 | + I added several features to help you in this honorable quest… |
| 9 | + |
| 10 | + All details accessible through: |
| 11 | + |
| 12 | + "Preferences / Package Settings / Trailing Spaces / Help" |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | +New feature: Modified Lines Only |
| 17 | +================================ |
| 18 | + |
| 19 | +As proposed by a fellow user, it is now possible to target only the lines |
| 20 | +modified by You and You Only when deleting trailing spaces. |
| 21 | + |
| 22 | +This feature will certainly please coders who edit third-party code filled |
| 23 | +with trailing spaces but do not want to commit giant diffs, just their little |
| 24 | +fix, while keeping it clean. |
| 25 | + |
| 26 | +New feature: Trim On Save |
| 27 | +========================= |
| 28 | + |
| 29 | +This option allows for automatic deletion upon saving. No more lost trailing |
| 30 | +spaces! A perfect combo to the "Modified Lines Only" setting I guess. |
| 31 | + |
| 32 | +New feature: Save After Trim |
| 33 | +============================ |
| 34 | + |
| 35 | +A different kind of automation: many users just want those trailings out and |
| 36 | +forget 'bout them. It is now made even easier with this auto-saving hook. Fire |
| 37 | +the deletion command, and your document is clean on the hard drive! |
| 38 | + |
| 39 | +At the current time, "Trim On Save" and "Save After Trim" cannot be both |
| 40 | +enabled (the former wins), but this is on the roadmap. |
| 41 | + |
| 42 | +New Menu |
| 43 | +======== |
| 44 | + |
| 45 | +Some of the settings seemed a bit more important than the others. Along the |
| 46 | +deletion command, the toggling command/state and the "Modified Lines Only" |
| 47 | +setting have been elected first-class citizens of the new "Edit / Trailing |
| 48 | +Spaces" menu. Any change made by click here is live, persistent and reflected |
| 49 | +in the JSON settings file. Settings are global to all open documents. |
| 50 | + |
| 51 | +Improvements & Misc. |
| 52 | +==================== |
| 53 | + |
| 54 | +- Support for custom matching patterns (danger!). |
| 55 | +- Performance improvements (reduced overhead, with some room for further |
| 56 | + improvements). |
| 57 | +- Better documentation (both code & user doc). |
| 58 | +- Lazy "On-demand" matching improved. |
| 59 | + |
| 60 | +Useful Links |
| 61 | +============ |
| 62 | + |
| 63 | +* Documentation & Code: https://github.com/SublimeText/TrailingSpaces |
| 64 | +* Report issues / Request New Features / Roadmap: https://github.com/SublimeText/TrailingSpaces/issues |
| 65 | +* Follow me on twitter: @jdvauguet |
0 commit comments