Multiple cursors are dependent on direction of selection
Hi, thanks for making ZED.
Today I ran across a pretty obvious problem with multiple selections. To reproduce:
- Place cursor at end of one expression (e.g.
self.title) - select entire expression with shift-left (or shift-alt-left)
- press cmd-d to select next match
Now we have two selections, but the cursors are at opposite ends: The cursor for the initial selection is now (logically) at the beginning of the expression. The cursor for the second match is placed at the end of the expression.
From an implementation point of view, that might make sense.
But it's very cumbersome for actual use:
It's now almost impossible to consistently navigate across these multiple selections.
For example, moving all cursors to remove the "self" or to change the "title" in self.title requires a jump to the beginning/end of the line followed by navigating token by token.
So, it's not a dealbreaker but irritating once realized :)
Yep, sounds annoying and is definitely a bug not a feature. Thanks for reporting!
Hey @trifle, looks like this PR:
- https://github.com/zed-industries/zed/pull/29293
... fixed the issue, so I'm going to close this out. Thanks for reporting this to us.
Awesome, I can confirm that this now works consistently. Thanks!