Skip to content

Improve column selection by setting origin to clicked position#66445

Merged
alexdima merged 1 commit intomicrosoft:masterfrom
shreeve:improve-column-selection
Feb 14, 2019
Merged

Improve column selection by setting origin to clicked position#66445
alexdima merged 1 commit intomicrosoft:masterfrom
shreeve:improve-column-selection

Conversation

@shreeve
Copy link
Contributor

@shreeve shreeve commented Jan 13, 2019

In conjunction with setting editor.multiCursorModifier to ctrlCmd, this yields a much more natural alt+click experience. The goofier shift+alt+click that is the default uses the prior cursor position as the start point of the column selection.

See #66444 - Resolve the column selection conversation

@rcdailey
Copy link

This won't fix the issue with blank lines though....

@gingerbeardman
Copy link

This won't fix the issue with blank lines though....

@rcdailey it's an improvement on than the current behaviour and for that I say: thanks! @shreeve

@hollowstrawberry
Copy link

hollowstrawberry commented Jan 13, 2019

You're a godsend. I hope they accept the PR, as it's been long enough (3 years) of unintuitive, non-standard, non-customizable controls for column selection.

@shreeve
Copy link
Contributor Author

shreeve commented Jan 16, 2019

This won't fix the issue with blank lines though....

@rcdailey - What is the specific issue with the blank lines?

@gingerbeardman
Copy link

gingerbeardman commented Jan 16, 2019

This won't fix the issue with blank lines though.... ...

@shreeve the rectangular selection doesn't select past the end of a line, it needs to support "virtual white space" it's not a separate issue but rather just mentioned in the big one about alt-select

@shreeve
Copy link
Contributor Author

shreeve commented Jan 16, 2019

This is how it's handled in Sublime Text:

sublime-column-selection

Here's how it's handled in VS Code:

vscode-column-selection

@rcdailey
Copy link

rcdailey commented Jan 16, 2019 via email

@shreeve
Copy link
Contributor Author

shreeve commented Jan 16, 2019 via email

@shreeve
Copy link
Contributor Author

shreeve commented Jan 16, 2019

In the spirit of clean enhancements to the usability of VS Code, can @isidorn, @joaomoreno, and @bpasero take a look at this PR?

It resolves a long standing (more than three years old) request to fix the column selection: See #66444 - Resolve the column selection conversation

@shreeve
Copy link
Contributor Author

shreeve commented Jan 16, 2019

Adding @alexandrudima, to see if he can help.

@isidorn
Copy link
Collaborator

isidorn commented Jan 17, 2019

@shreeve pinging vscode engineers on issues in hope that we will fix it does not really make sense so please stop doing that.
@alexandrudima probably has a good reason why he did not implement this feature thus far and he can comment on the PR when he finds time.

@shreeve
Copy link
Contributor Author

shreeve commented Jan 17, 2019

No worries. Thanks.

In conjunction with setting `editor.multiCursorModifier` to `ctrlCmd`, this yields a much more natural `alt+click` experience. The goofier `shift+alt+click` that is the default uses the _prior_ cursor position as the start point of the column selection.
@alexdima alexdima force-pushed the improve-column-selection branch from 75fcf5c to be7af0e Compare February 14, 2019 11:56
@alexdima alexdima added this to the February 2019 milestone Feb 14, 2019
@alexdima
Copy link
Member

👍 This works great and is blatantly simple! Thank you!

@alexdima alexdima merged commit d8529d7 into microsoft:master Feb 14, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants