[Lazarus] How should "delete to end of word behave"
klenin at gmail.com
Sat Nov 8 04:25:02 CET 2008
On Sat, Nov 8, 2008 at 07:28, Martin Friebe <lazarus at mfriebe.de> wrote:
> IMHO there are 3 option how it could finally be. You can see in all 3
> examples that it will differ between space, identifer-chars, and punctation
> 1) spaces are *not* trimmed
> f|oo_bar := ord('b'); -> f| := ord('b'); -> f|:= ord('b');
> -> f| ord('b'); -> f|ord('b'); -> f|('b'); -> f|b'); ->
> f|'); -> f|
> 2) spaces are trimmed
> f|oo_bar := ord('b'); -> f|:= ord('b'); -> f|ord('b'); ->
> f|('b'); -> f|b'); -> f|'); -> f|
> 3) spaces are trimmed only if you where at the start of the word
> (|cond1 AND cond2) -> (|AND cond2)
> (co|nd1 AND cond2) -> (co| AND cond2)
> The last one is what open-office does and MS word. It solves both: the
> quick deletition of many word and avoiding to join 2 (unrelated) words.
> Question is, if it could be irritating to have it conttext sensitive.
Assuming you speak about Ctrl+Delete shortcut in these applications:
OpenOffice 3.0 does delete _the next word_, even is there are spaces
in front of it (which makes sense since word processor users rarely
need to indent text).
I do not have MS Word to check.
OTOH, Visual Studio 2008 (and some other widows-specific
like Far Commander and Notepad++) behave like Delphi, i.e. according
to case (2) above.
BTW, perhaps it would be good to add Ctrl+Delete as a default synonym to Ctrl+T?
Alexander S. Klenin
Insight Experts Ltd.
More information about the Lazarus