# editor: Support both cursor and mouse based columnar selection \(\#32779\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/ef61ebe04989cf205e927f35f26bb4e9fe0bc211)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: ef61ebe04989cf205e927f35f26bb4e9fe0bc211

Requested commit: ef61ebe04989cf205e927f35f26bb4e9fe0bc211

Commit: ef61ebe04989cf205e927f35f26bb4e9fe0bc211

Tree: 0291aa24e362facb21ac8c333c0de023a7466703

Author: Smit Barmase

Committer: GitHub

## Message

```
editor: Support both cursor and mouse based columnar selection (#32779)

Closes #32584

In https://github.com/zed-industries/zed/pull/31888, we changed the
default `opt + shift` behavior to start columnar selection from the
mouse position (Sublime-like behavior) instead of from the existing
selection head (VSCode-like behavior).

It turns out there is a use case for creating columnar selection from an
existing selection head as well, such as creating a consecutive
multi-cursor from existing selection head with just a click instead of
dragging.

This PR brings back columnar selection from the selection head via `opt
+ shift`, while retaining columnar selection from the mouse position,
which is now mapped to the new `cmd + shift` binding.

Note: If you like to swap the binding, you can use [existing multi
cursor modifier
setting](https://zed.dev/docs/configuring-zed?highlight=multi_cursor_modifier#multi-cursor-modifier).

Release Notes:

- Added `cmd + shift` to start columnar selection from the mouse
position.
- Restored `opt + shift` to create columnar selection (or consecutive
multi-cursor on click) from the selection head.
```

## Parents

- [6150c26bd2dddcd59e667c062eb2111037d32b80](https://git.cafe/gitcafe/zed/commit/6150c26bd2dddcd59e667c062eb2111037d32b80?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/ef61ebe04989cf205e927f35f26bb4e9fe0bc211?format=markdown)
