Skip to content

Add multicursor autocompletions#4028

Open
redsti-github wants to merge 4 commits intomicro-editor:masterfrom
redsti-github:feature/multicursor-autocomplete
Open

Add multicursor autocompletions#4028
redsti-github wants to merge 4 commits intomicro-editor:masterfrom
redsti-github:feature/multicursor-autocomplete

Conversation

@redsti-github
Copy link

@redsti-github redsti-github commented Mar 1, 2026

Implements autocomplete while using multiple cursors. (loosely based on #3442)

Only autocompletes cursors which end in the same word as the active cursor.

For example:

foo bar
f|     -> foo|
f|     -> foo|
b|     -> b|
f|b    -> f|b

Closes #3442

@JoeKar
Copy link
Member

JoeKar commented Mar 1, 2026

But we already have #3442 and this use case is discussed within it?!
I don't see any reason to duplicate the PR.

@redsti-github
Copy link
Author

Yes, but #3442 still autocompletes on all cursors, even if they shouldn't be.
I created this PR because as far as i know, i can't add or suggest commits to someone else's PR. (Atleast not without opening a PR to the author's repo, or commenting a diff, both of which feel impractical to me.)

@Neko-Box-Coder
Copy link
Contributor

Tested the changes, works well as expected. Nice one.

@Neko-Box-Coder
Copy link
Contributor

Neko-Box-Coder commented Mar 21, 2026

Hey @redsti-github , I want to merge this to my own fork.

Could you tidy up the commits please?
i.e. "fix plugin support" and "remove trailing whitespace" should be in "Autocomplete support for multiple cursors" instead of having their own commits.

Thanks.

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

Successfully merging this pull request may close these issues.

3 participants