Sublime Forum

Column select with middle mouse, key equiv?

#1

Is there a keyboard equivalent to the column select achieved by middle clicking?

It would be nice to be able to use alt+up, alt+down etc for this.

0 Likes

#2

ctrl+alt+ up/down

0 Likes

#3

What about end of line selections with the keyboard?

e-texteditor offers a nice feature which allows you to press the Alt key and then select the end of the line, a positional select etc -similar to your middle key which in this instance I prefer over Sublime’s middle mouse button because my laptop doesn’t have a middle mouse.

Is it possible to remap this at all?

0 Likes

#4

Look at Sublime Text 2\Packages\Default\Default (XXX).sublime-mousemap

// Mouse 3 column select { "button": "button3", "press_command": "drag_select", "press_args": {"by": "columns"} }, { "button": "button3", "modifiers": "ctrl"], "press_command": "drag_select", "press_args": {"by": "columns", "additive": true} }, { "button": "button3", "modifiers": "alt"], "press_command": "drag_select", "press_args": {"by": "columns", "subtractive": true} },
And actually Shift + Mouse 2 does exactly the same…
Or you could use ctrl+alt+ up/down followed by end key…
Or a normal selection followed by ctrl + shift + l followed by end key.

0 Likes

#5

eg data

#0xf0f8ff,
#0xfaebd7,
#0x00ffff,
#0x7fffd4,
#0xf0ffff,
#0xf5f5dc,
#0xffe4c4,
#0x000000,
#0xffebcd,

  1. Find all #0
    selection automatic created than move left right key
0 Likes