zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
49.78k stars 3.06k forks source link

multi-selection - unable to select from beginning of line without initial cursor placement #13905

Open benbenbang opened 4 months ago

benbenbang commented 4 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Hello team πŸ‘‹πŸ»

First of all, thank you for the hard work! This is becoming my favorite IDE.

Normally, when we multi-select, we use the key binding option (alt) + shift + cursor selection to select the lines we want.

But if we don't place the cursor in the first line we want before pressing the key binding, it doesn't jump to the first character and follows the selected line.

I wondered if it's by design or a small 🐞?

The normal behavior:

https://github.com/zed-industries/zed/assets/6682936/a5f91eb4-260e-4c16-98e4-15d07eebc305

Bug?

https://github.com/zed-industries/zed/assets/6682936/092ba86a-ca54-4ca4-9ffc-8b9a794bffef

Expect behavior (In Sublime Text)

https://github.com/zed-industries/zed/assets/6682936/ff4d3fea-ba24-4028-9a6f-4e2643a8c4ce

Environment

MBP 2023 14-inch

If applicable, add mockups / screenshots to help explain present your vision of the feature

See above

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

I didn't see any related logs about the multi-selection.

cisoun commented 4 months ago

+1 for this. I come from Sublime Text and it troubles me. Zed is copying VSCode's behaviour. I find Sublime's easier but it's a matter of taste.

As I've already mentioned in https://github.com/zed-industries/zed/issues/13366: 1) A mode between Sublime Text / VSCode would be welcome. 2) When using ST mode, using only OPTION + drag would be enough. This key itself isn't doing anything anyway IIRC.

benbenbang commented 3 months ago

Hello @JosephTLyons,

I am not sure if it's you working on this one, so I tagged you directly. Is there any update on this issue? Thanks in advance.

benbenbang commented 2 days ago

Hello,

Do we have any update on this issue?

Thanks