Don't move cursor when saving and stripping whitespace

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply

How important is it to you, to have this feature implemented into future versions of TextPad?

Important, even if the size/efficiency of TextPad increases/degrades
1
17%
Somewhat important
0
No votes
I'm okay either way
3
50%
Somewhat unimportant
0
No votes
Unimportant, even if the size/efficiency of TextPad remains unaffected
2
33%
 
Total votes: 6

User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

Don't move cursor when saving and stripping whitespace

Post by jeffy »

I always strip trailing whitespace from my document when saving

Configure menu -->
Preference dialog -->
Document Classes branch -->
Default Document Class -->
Strip trailing spaces from lines when saving CHECKBOX (checked)

However, I find it annoying that, when the cursor is currently at the end of some trailing whitespace, that the cursor is moved to the left (the result of the whitespace being stripped).

I don't mind that the whitespace is stripped, but if I *don't* move the cursor, but rather keep typing, I want the whitespace, on just this line, to be preserved.

In otherwords, DO strip the whitespace, but DON'T move the cursor. *If* I keep typing, then re-implement (re-type) that whitespace. If I *move* the cursor (before typing anything), then the whitespace should remain stripped/gone.

Is this clear?
Post Reply