Home Download Buy Blog Forum Support

Revtangular selection problems

Revtangular selection problems

Postby svenax on Tue Dec 20, 2011 12:59 pm

I recently started to use Sublime Text 2 and am loving it already. I seem to have a problem with making rectangular selections though. As I understand it, it should be possible with alt+drag. However, I always get regular selections no matter which modifier(s) I use when dragging. Also Ctrl+Shift+Up/Down doesn't do anything at all. The only way I can make multiple selections is with Command+Click, and of course Command+Shift+L to convert a regular selection.

I just want to make a column selection in order to, for instance, insert some text in the middle of several lines.

Am I totally misunderstanding how this should work? If this was a general problem, I'd expect to see more forum posts about it.
svenax
 
Posts: 145
Joined: Tue Dec 20, 2011 12:47 pm

Re: Revtangular selection problems

Postby bizoo on Tue Dec 20, 2011 1:06 pm

shift+right mouse button
Look at Sublime Text 2\Packages\Default\Default (xxx).sublime-mousemap
bizoo
 
Posts: 873
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Revtangular selection problems

Postby svenax on Tue Dec 20, 2011 1:36 pm

bizoo wrote:shift+right mouse button
Look at Sublime Text 2\Packages\Default\Default (xxx).sublime-mousemap


OK, thanks. This is OSX and there's no shift+button2 mapping present. And since I exclusively use a trackpad, button3 does not work either.

But changing the alt+button1 mapping to super+button1 made it work the way it should. I don't think I have anything installed that intercepts this, so it is weird that it was needed. I also changed ctrl+shift+up/down to ctrl+super+up/down, and now the key mappings also work.

Has anyone else had similar problems when some key and mouse mappings are mysteriously disabled?

This is on Mac OS 10.7.2
svenax
 
Posts: 145
Joined: Tue Dec 20, 2011 12:47 pm

Re: Revtangular selection problems

Postby GMFlash on Tue Dec 20, 2011 3:43 pm

I also had this same problem. Removing the SublimeCodeIntel package fixed it for me. The default alt/option + drag works again.
GMFlash
 
Posts: 10
Joined: Tue Aug 30, 2011 2:55 pm

Re: Revtangular selection problems

Postby Thithi on Mon Jan 09, 2012 5:38 pm

Sorry, but for SublimeCodeIntel is THE masterkiller feature of sublime text, so removing it is a kill for me.

So let me just encourage you keeping SublimeCodeIntel and use the behavior: "cmd" + "alt" + [right clic] -> it works perfectly with CodeIntel (since it's a "build in" behaviour for mac) and allows multiple column selection (and if you want just one selection, just clic randomly in your file before selection).
Thithi
 
Posts: 3
Joined: Sat Dec 17, 2011 4:00 pm

Re: Revtangular selection problems

Postby suranyami on Wed Nov 14, 2012 4:33 am

I fixed this by copying this:

Code: Select all
~/Library/Application Support/Sublime\ Text\ 2/Packages/Default/Default\ (OSX).sublime-mousemap


to:

Code: Select all
~/Library/Application Support/Sublime\ Text\ 2/Packages/User/Default\ (OSX).sublime-mousemap



Blog post about it http://blog.suranyami.com/fix-for-sublime-text-2-column-select-not-work
suranyami
 
Posts: 1
Joined: Wed Nov 14, 2012 4:29 am

Re: Revtangular selection problems

Postby codecapital on Sun Feb 10, 2013 9:33 pm

I have SublimeCodeIntel installed and my Option+Drag was not providing column select on OS X (10.8) in Sublime 2.

I verified that Cmd+Option+Drag does work.

I also followed instructions on https://github.com/Kronuz/SublimeCodeIntel to copy the mouse map into from Default Sublime preferences to User Sublime preferences and my Option+Drag began to work again immediately. I noticed there was not default mouse map in my User Sublime preferences before copying.
codecapital
 
Posts: 1
Joined: Sun Feb 10, 2013 9:28 pm


Return to Technical Support

Who is online

Users browsing this forum: Alexa [Bot] and 10 guests