Hi,

On 2010.05.18 10:11, Viktor Szakáts wrote:
What is the reason you want to handle "line"
selection separately from stream selection?

Line selection looks like a stream which ends
and begins at column zero.

Could be much simpler with two modes: stream and block.

Yes, line mode is a similar to stream mode, but you do not have to move to beginning of line (that's simple, just press [Home]) and latter you do not have to move back to the same position (that's a lot of cursor movements). I find this very useful. The examples of typical usage are:
1) duplicate line
    ::startLineMarking()
    ::stopMarking()
    ::copyBlock()
it's 3 key strokes (two of them are the same key, so, it's very fast): F7 F7 F8

Try to compare to standard Windows behaviour without persistent blocks:
    Home
    Shift+Down
    Ctrl+C
    Up
    Ctrl+V
    Left
    Left
    Left
    (and more 30 times Left to position cursor to the same column)

2) swap to lines
    ::startLineMarking()
    ::stopMarking()
    Up
    ::moveBlock()
keystokes
     F7 F7 Up Shift+F8


3) almost any copy-paste code is duplicated using line block, because you do not need to care about cursor position. Usually you need to change some characters in the middle of line (but not in the first column), so you save a lot of cursor positioning movements using line block.


I thing, those, who is happy with two selection modes, can do not bind additional key to ::toggleLineSelectionMode() and have only two of them.


Regards,
Mindaugas
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to