Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Cursors Tutorial #1780

Closed
VasilyFomin opened this issue Mar 9, 2022 · 1 comment
Closed

Multiple Cursors Tutorial #1780

VasilyFomin opened this issue Mar 9, 2022 · 1 comment
Labels
C-bug Category: This is a bug

Comments

@VasilyFomin
Copy link

Reproduction steps

Launch helix tutorial:

hx --tutor

Environment

  • Platform: macOS
  • Terminal emulator: iTerm
  • Helix version: latest from Homebrew

Tutorial says:

Type C to duplicate the cursor
Type , to remove the second cursor

Pressing , deletes the first cursor, actually it deletes all of cursors, except for the last one. Not sure what should be the proper behavior here (probably remove all cursors, except the first one), but if I do x and then s to select multiple words on the line pressing , removes all cursors except the first one.

@VasilyFomin VasilyFomin added the C-bug Category: This is a bug label Mar 9, 2022
@Omnikar
Copy link
Contributor

Omnikar commented Mar 10, 2022

Removing all extra cursors is the intended behaviour of ,. Which cursors get removed and which remains is determined by which of your cursors is the "primary" cursor. Some of the default themes come with theming for the primary cursor that's different from the rest of the cursors so that you can actually see which is the primary cursor, but not all the themes do. You can add your own colour for the primary cursor/its selection by adding colours for ui.cursor.primary and/or ui.selection.primary in your theme file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

3 participants