Sublime Forum

Lock line when mouse select (if the line is too long, select with mouse is a pain)

#1

Hi all. When I have a file with very long lines and empty lines in between, select with mouse is a great pain.

Imagine a log file like:

loooooooooooooooooooooo.......oooooong line 1

loooooooooooooooooooooo.......oooooong line 2

...

When I want to select something in line 1, I drag my mouse; but it easily moves upside or downside, and I end up jumping to line 2, and the horizontal scroll jumps to the very left, and I must scroll again to right to select again.

Some new feature to lock selection to the current line? Limiting the selection on the long line where the cursor lands, and stop selecting on other lines even the mouse moves up/down. Should be like Toggle lock/unlock.

0 Likes

#2

Or, directly, lock horizontal scroll bar, because I may select several lines at a time.

0 Likes

#3

This is something that annoys me on occasion too, but then I just work around it by using the keyboard to select or temporarily enabling word wrap, or manually hard wrapping the code so the lines aren’t as long :wink:

0 Likes

#4

Yeah… but if I want to compare Line 1, Line 2 or Line 3, wrapping lines would not be an option… And I may want to edit on several lines at the same time… selecting with middle mouse key.

How do you select with keyboard? I am moving around with Ctrl + arrow keys, to move quicker…

Also, it is not implemented in other text editors, like Notepad ++. If ST3 can do it, it will become a good plus to attract ppl in.

0 Likes

#5

Vim commands makes selecting specific portions of text easy.

0 Likes

#6

Ah. So we resolve to vim, the famous and the infamous(no offense really because I use vim too, but when it is necessary, not in ST3). v + w/b/$/|, ye ye ye… but maybe it would be my last resource…

0 Likes