I'd like to see new selection modes in GPM. Such as:
1) A mode where you click on a given x,y text screen coordinate,
drag the mouse, and when you let go of the key, a rectangle
is selected. Example: click on 10,10, drag to 20,20, and a
selection rectangle appears over a rectangle with these four
corners (10,10)-(10,20)-(20,20)-(20,10).
This would be easier when you want to select a pop-up box, or
a screen element that's boxed in. One wouldn't have
to select all the rows the pop-up was in, paste it elsewhere,
then laboriously delete characters preceding and following.
(I.E. just like selecting in xpaint, or the gimp. Pixel mode,
rather than continuous line mode.)
2) A mode where the mouse leaves a selection trail wherever it's
moved. This would be just like drawing lines in a paint program.
The text selected would be the characters covered only, made to
fit in the smallest blank background rectangle possible.
Example: suppose the screen looks like this:
1
+--------------------------------+
| |1
| h o |
| e l |
| l |
| e l |
| h o |
| |
| |
+--------------------------------+
Then the user clicks at 2,2 and selects a straight diagonal
to 6,6. (I'll draw selected "pixels" with the '#'
character.) Note that we don't want to select the 'hello'
that goes from 2,6 to 6,2.
1
+--------------------------------+
| |1
| # o |
| # l |
| # |
| e # |
| h # |
| |
| |
+--------------------------------+
Once that's selected, the user opens up a text editor in
another console and pastes. The result would be:
1
+--------------------------------+
|h |1
| e |
| l |
| l |
| o |
| |
| |
| |
+--------------------------------+
...and the contents of the select buffer would be:
1
+---------+
|h <cr>|1
| e <cr>|
| l <cr>|
| l <cr>|
| o<cr>|
+---------+
How would these modes be activated? Maybe a key combination of
some sort.
Hope this inspires somebody...