I also always have the "Strip trailing spaces from lines when saving" setting checked.
The one thing that annoys me about it is, if the cursor happens to follow some whitespace, it is moved to column zero.
I wish there was a sub-setting under "Strip trailing spaces from lines when saving", to say "Do not strip whitespace immediately before cursor".
Small request: Strip trailing spaces, but NOT b4 the cursor
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Many text editors allow you to turn on 'virtual spaces', which then allows you to place your cursor wherever you want - beyond the end of any given line, but it won't create spaces to fill the difference until you start typing real characters.
So, if you combine that with strip trailing spaces when saving a file, then it will remove all of the trailing whitespace, but won't move your cursor. If you then type something, those spaces will automatically be recreated and the next time you save, they'll be preserved.
So, not exactly what you're asking for, but maybe as useful to you (you'll have to answer that).
OH! I found it - in TextPad it's called "Constrain the cursor to the text" - under Preferences, Editor - first check-box.
Uncheck that, and it will allow your cursor to be wherever you want. Maybe that will be useful to you?
So, if you combine that with strip trailing spaces when saving a file, then it will remove all of the trailing whitespace, but won't move your cursor. If you then type something, those spaces will automatically be recreated and the next time you save, they'll be preserved.
So, not exactly what you're asking for, but maybe as useful to you (you'll have to answer that).
OH! I found it - in TextPad it's called "Constrain the cursor to the text" - under Preferences, Editor - first check-box.
Uncheck that, and it will allow your cursor to be wherever you want. Maybe that will be useful to you?