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

SpawnMultiCursorAll - feature request #2920

Open
Gavin-Holt opened this issue Sep 13, 2023 · 2 comments
Open

SpawnMultiCursorAll - feature request #2920

Gavin-Holt opened this issue Sep 13, 2023 · 2 comments

Comments

@Gavin-Holt
Copy link

Hi,

Multi-cursor editing is great! The more I use multiple cursors, the more I wish for a function to edit all occurrences of a selection. I guess a pair of functions ScrollNextCursor/ScrollPrevCursor would also be needed so we can check all the selections before editing.

This would be much easier than ReplaceAll. ReplaceAll requires me to type/paste the target, then the replacement and feels long-winded, especially when there are spaces demanding quotes. If I make an error with ReplaceAll I may lose the unique target and cannot correct without undo.

Simply typing the replacement using multiple cursors feels much easier - like a superpower!

Sorry I don't have the skills to code this myself.

Kind Regards Gavin Holt

Version: 2.0.12-dev.75
Commit hash: 75b9a6c
Compiled on September 02, 2023
OS: Windows
Terminal: Conhost.exe

@mosskjohnson
Copy link

mosskjohnson commented Sep 29, 2023

@Gavin-Holt

Hi Gavin,

I am currently working on a plugin for this feature. However, as far as I know there is no way to create new multicursors through lua plugins. I've submitted a pull request to add this binding, though.

@dmaluka
Copy link
Collaborator

dmaluka commented Oct 9, 2023

Can't this be already done from lua via bp:SpawnMultiCursor() (possibly with an additional help from bp:Buf:SetCurCursor() or similar functions, if needed)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants