Column Text Selection


#1

TextMate has an awesome column selection tool where you can hold down option (on a Mac) and drag your cursor to select a column of text. It would be awesome to have in Atom.


Multiline select with the mouse while holding option. Like Sublime Text 2
#2

You can’t do it with the mouse, but you can do it with the keyboard: ^⇧-[up|down].


#3

Doesn’t ^⇧-[up|down] trigger Exposé in OSX? It seems to for me at least, which prevents this from working as I would expect. That beings said, I can still get it to work by clicking the option from the selection menu. I have to go one line at a time though.

I would love it if they enabled column selection in a similar fashion to TextMate’s implementation. It’s quick and easy to use.


#4

If that’s the default in OS X, I’ve disabled it. :smile:


#5

It is the default keyboard shortcut, but they’re easy enough to change/disable.

System Preferences > Keyboard > Shortcuts > Mission Control

#6

FWIW, several other OS X apps offer columnar selection as well, including Sublime Text, Terminal.app, iTerm, and even TextEdit. Definitely would be great to have this in Atom.


#7

Being able to do this with the mouse would be a great enhancement.


#8

+1 for this :smile:, its the one feature that keeps me going back to Sublime.


#9

I’ve disabled any keyboard shortcuts this might be conflicting with and I still can’t use this shortcut for some unknown reason.

I’d really really really really like the ability to drag select with the option key.

Please.

Thank you.


#10

+1 for column drag selection! The multiple-caret behavior could use a little refinement as well – for example, something nice that Sublime Text does is if you have, say, four carets, and you try and paste some text with exactly four lines in it, it’ll paste one line at each caret rather than all four lines at each caret.


#11

please see this video for a detailed example http://bit.ly/1nvPBua


#12

This is an invaluable feature that I use about ever 5 minutes while coding :slight_smile:


#13

Try this, hold down ctrl and shift and press the down arrow a few times without letting go of ctrl and shift and you should see a giant blinking cursor the size of the lines you moved down. Now you can hold shift down and move left or right to select your column. Far superior to using the mouse.


#14

Hmm, this does seem to clash with the Expose shortcuts.

Also, the Sublime Text mouse-based method is much more intuitive:

(Skip to 9 seconds to see it).

If you haven’t tried it before, it might be a good idea to download Sublime Text and check it out (it’s free)

Basically, in Sublime Text, you can just hit the “Option” key, then click and drag to select an arbitrary columns of text.

I believe Microsoft Word actually offers something similar, as does TextMate, and a whole bunch of other editors.


#15

+1 for a Sublime-type column select feature.


#16

When it works, but it doesn’t for me. Some key mapping is blocking. Nothing happens, actually.


#17

⌃⇧↑ and ⌃⇧↓ do not work for me either, though they do work in Sublime Text so I doubt it’s a OS X mapping issue.


#18

Duplicate of …


#19