Home Download Buy Blog Forum Support

Subtract from selection

Subtract from selection

Postby Fyoroe on Tue Apr 16, 2013 12:56 pm

I read from the docs that in order for me to subtract from a selection, using the ALT key works.

But after selecting a few lines of text using CTRL + mouse drag , I pressed ALT + mouse drag and nothing happened.

Any advice is appreciated. :D
Fyoroe
 
Posts: 6
Joined: Tue Apr 16, 2013 12:07 pm

Re: Subtract from selection

Postby qgates on Wed Apr 17, 2013 4:06 am

ALT+drag only works when you are trimming the ends of a selection, not the middle. Start ALT+dragging outside a selection endpoint and drag over the selection for it to work.

If you want to "paint" selections, you can use mousewheel (column select) and ALT+mousewheel (column unselect).
qgates
 
Posts: 188
Joined: Mon Nov 05, 2012 4:33 pm

Re: Subtract from selection

Postby Fyoroe on Thu Apr 25, 2013 1:20 pm

it still doesn't work. I tried what you said, hovering my cursor outside the already selected text and then holding CTRL + mouse drag to the end of the selection.

=/
Fyoroe
 
Posts: 6
Joined: Tue Apr 16, 2013 12:07 pm

Re: Subtract from selection

Postby bizoo on Thu Apr 25, 2013 1:47 pm

Maybe a plugin ?
In the console type:
Code: Select all
sublime.log_commands(True)

Next try to first select a text with the mouse, then add selection with ctrl+mouse.
You must have something like that in the console:
Code: Select all
command: drag_select {"event": {"button": 1, "x": 402.5, "y": 161.5}}
command: drag_select {"additive": true, "event": {"button": 1, "x": 370.5, "y": 430.5}}
bizoo
 
Posts: 859
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Subtract from selection

Postby Fyoroe on Sun Apr 28, 2013 2:01 pm

Yup I got something similar to what you have :D

I think I worked out how the subtraction selection works in Sublime ..

You can only subtract only from the last line from the selected lines right ?

On a sidenote, how do I deactivate logging ? It tried changing the command to 'false', but it didn't work.
Fyoroe
 
Posts: 6
Joined: Tue Apr 16, 2013 12:07 pm

Re: Subtract from selection

Postby bizoo on Mon Apr 29, 2013 6:44 am

Fyoroe wrote:On a sidenote, how do I deactivate logging ? It tried changing the command to 'false', but it didn't work.

You're correct, it must works:
Code: Select all
sublime.log_commands(False)

Fyoroe wrote:You can only subtract only from the last line from the selected lines right ?

Not sure what you mean here, but I think you're incorrect:
You can add selection with ctrl+button1 or subtract selection with alt+button1 anywhere, not only on the last selected lines.
At least in Windows 7, what's your OS ?
bizoo
 
Posts: 859
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 16 guests