-2

Control-drag selection to immediate next line

Caleb Anderson 12 years ago 0
I often select multiple lines to duplicate. When using the mouse I select my desired lines and control-click the selection and drag down. My intent is to duplicate the selection to the very next line. However, currently the caret is only allowed to get as close as the beginning of the next line, which breaks the flow. The expected behavior is to be allowed to start at the end of the selected text.


Example:
I have the following text:

"-I/path/to/myproject/includes/something",
"-I/path/to/myproject/includes/somethingelse",
"-I/path/to/myproject/includes/morethings",
"-I/path/to/myproject/includes/evenmorethings",
"Something different"

I want to add 4 more lines and change a small bit of each. I want this to be immediately after the first four lines.
I select the first four lines of text by clicking to the right of the end of the fourth line and dragging up to the blank space above (or the end of the line above). I then hold control and click on my selection and start dragging to duplicate the text.


The best output I can get is:

"-I/path/to/myproject/includes/something",
"-I/path/to/myproject/includes/somethingelse",
"-I/path/to/myproject/includes/morethings",
"-I/path/to/myproject/includes/evenmorethings",

"-I/path/to/myproject/includes/something",
"-I/path/to/myproject/includes/somethingelse",
"-I/path/to/myproject/includes/morethings",
"-I/path/to/myproject/includes/evenmorethings","Something different"


If I could position the caret at the end of the selection I could get:

"-I/path/to/myproject/includes/something",
"-I/path/to/myproject/includes/somethingelse",
"-I/path/to/myproject/includes/morethings",
"-I/path/to/myproject/includes/evenmorethings",
"-I/path/to/myproject/includes/something",
"-I/path/to/myproject/includes/somethingelse",
"-I/path/to/myproject/includes/morethings",
"-I/path/to/myproject/includes/evenmorethings",
"Something different"