Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Manipulate only primary cursor in multicursor mode #5936

Closed
goyalyashpal opened this issue Feb 12, 2023 · 1 comment
Closed

Manipulate only primary cursor in multicursor mode #5936

goyalyashpal opened this issue Feb 12, 2023 · 1 comment
Labels
C-enhancement Category: Improvements

Comments

@goyalyashpal
Copy link
Contributor

goyalyashpal commented Feb 12, 2023

  • Most of the time, the required mulicursor selection do have some common semantic/syntactic meaning,
    so can be done using same operations (moving by words, to end of line, etc.)
  • But often time, say one of thosee selections is the exception / odd one out and requires additional tweaking
  • ability to move only primary cursor will help a lot in those cases...

It can be thought of as having a primary cursor mode in multicursor.

@goyalyashpal goyalyashpal added the C-enhancement Category: Improvements label Feb 12, 2023
@the-mikedavis
Copy link
Member

This is something that should be solved with marks (#3720). With the current bindings on that PR you could start with multiple selections, save those selections to a register with save_selection_to_register (^s), use keep_primary_selection (,) to remove all non-primary selections, operate on that primary selection, and then use union_selection_from_register (^ca) to restore the other selections.

@helix-editor helix-editor locked and limited conversation to collaborators Feb 12, 2023
@the-mikedavis the-mikedavis converted this issue into discussion #5949 Feb 12, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

2 participants