Skip to content

Conversation

@fantacell
Copy link
Contributor

@fantacell fantacell commented Sep 12, 2025

Closes #33637
Closes #37332
and solves part of #33580 (comment)

This improves the "C" and "alt-C" actions to work like helix.
It also adds "," which removes all but the newest cursors. In helix the one that's left would be the primary selection, but I don't think that has an equivalent yet, so this simulates what would be the primary selection if it was never cycled with "(" ")".

Release Notes:

  • Improved multicursor creation and deletion in helix mode

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Sep 12, 2025
@romaninsh
Copy link
Contributor

Could this also solve #37332 ?

@fantacell
Copy link
Contributor Author

Could this also solve #37332 ?

Yes, thank you.

@kubkon kubkon self-assigned this Sep 13, 2025
@kubkon kubkon added the helix label Sep 15, 2025
@kubkon kubkon force-pushed the helix-selection-cloning branch from f99dc38 to a65c77b Compare October 16, 2025 16:11
@kubkon kubkon force-pushed the helix-selection-cloning branch from a65c77b to cb2ac37 Compare October 16, 2025 16:14
Copy link
Member

@kubkon kubkon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I've reorganised the code a little bit so that we keep this helix-only rather than adding new actions to the editor - if there ever is a need we can extract it from helix into the editor proper. But until such time I would be more comfortable narrowly scoping any helix-related changes to the helix module.

@kubkon kubkon enabled auto-merge (squash) October 16, 2025 16:21
@kubkon kubkon merged commit 25172f9 into zed-industries:main Oct 16, 2025
22 checks passed
xipeng-jin pushed a commit to xipeng-jin/zed that referenced this pull request Oct 17, 2025
Closes zed-industries#33637
Closes zed-industries#37332
and solves part of
zed-industries#33580 (comment)

This improves the "C" and "alt-C" actions to work like helix.
It also adds "," which removes all but the newest cursors. In helix the
one that's left would be the primary selection, but I don't think that
has an equivalent yet, so this simulates what would be the primary
selection if it was never cycled with "(" ")".

Release Notes:

- Improved multicursor creation and deletion in helix mode

---------

Co-authored-by: Jakub Konka <[email protected]>
@fantacell fantacell deleted the helix-selection-cloning branch October 17, 2025 09:11
P1n3appl3 pushed a commit to P1n3appl3/zed that referenced this pull request Oct 18, 2025
Closes zed-industries#33637
Closes zed-industries#37332
and solves part of
zed-industries#33580 (comment)

This improves the "C" and "alt-C" actions to work like helix.
It also adds "," which removes all but the newest cursors. In helix the
one that's left would be the primary selection, but I don't think that
has an equivalent yet, so this simulates what would be the primary
selection if it was never cycled with "(" ")".

Release Notes:

- Improved multicursor creation and deletion in helix mode

---------

Co-authored-by: Jakub Konka <[email protected]>
@Cyncrovee
Copy link

Thank you for this!/gen It's a small thing but still something I missed from Helix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement helix

Projects

None yet

4 participants