ehuss / Sublime-Column-Select

Alternate behavior for Sublime keyboard column selection.
MIT License
38 stars 12 forks source link

Multiple Cursor Column Selection #3

Open eorroe opened 9 years ago

eorroe commented 9 years ago
|hello
world

|hello
world

|hello
world

|hello
world

|hello
world

|hello
world

if I try to go down on the selection (windows: ctrl+alt+down) it should look like this:

|hello
|world

|hello
|world

|hello
|world

|hello
|world

|hello
|world

|hello
|world

instead I get this:

|hello
world

|hello
world

|hello
world

|hello
world

|hello
world

|hello
|world

Only the last cursor goes down

evandrocoan commented 8 years ago

But it does not seen a bug. What you is requesting actually is a new feature, which should be configurable by a setting, as I like the current behavior.

eorroe commented 8 years ago

True should be an optional setting, perhaps even a keymap trigger, where I toggle a mode, then trigger column select as normal, and then I can toggle it off whenever easily through a keybinding or the command palette

JoshuaWebb commented 5 years ago

Sublime's native column selection ("Add Previous Line" and "Add Next Line"), which this plugin is providing alternative behaviour for, provides this behaviour already. This plugin overrides them by default.

You can add keybindings for the original behaviour like so:

{ "keys": ["alt+shift+up"], "command": "select_lines", "args": {"forward": false} },
{ "keys": ["alt+shift+down"], "command": "select_lines", "args": {"forward": true} },

That way you can use the default keybindings to get the behaviour from this plugin, and the alternative keybinding to get the orginal behaviour.

Granted, they won't interact exactly how you want in all cases due to them not being aware of each other, but in simple cases like this, you can easily reach for whichever option best serves your needs.

selection