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

Make spellrepall work with spell_suggest #3019

Open
ilan-schemoul opened this issue Mar 29, 2024 · 2 comments
Open

Make spellrepall work with spell_suggest #3019

ilan-schemoul opened this issue Mar 29, 2024 · 2 comments
Labels
enhancement Enhancement to performance, inner workings or existent features

Comments

@ilan-schemoul
Copy link

Is your feature request related to a problem? Please describe.
With "z=" you can use :spellrepall to repeat last spell fixing. But when using telescope spell_suggest and then :spellrepall says "No previous spell replacement" instead of reapplying last suggestion

Describe the solution you'd like
spellrepall working

Describe alternatives you've considered
Add a method to telescope equivalent to spellrepall

@ilan-schemoul ilan-schemoul added the enhancement Enhancement to performance, inner workings or existent features label Mar 29, 2024
@jamestrew
Copy link
Contributor

If anyone has any ideas of implementing this, I'm all ears.
In my quick search, I didn't find anything like a register we can populate for :spellrepall or some other way to make this work without doing something hack-ier than what we already do (basically ciw and inserting the replacement word).

@ilan-schemoul
Copy link
Author

We can just use z{index}= instead of the hacky ciw #3022 implements this and it works.
Random thoughts :
Lua really is a blast I didn't know the language and I made like 6 PRs these past days.
Also I feel like spell suggestion don't get a lot of attention from vim/neovim users but it's quite important

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to performance, inner workings or existent features
Projects
None yet
Development

No branches or pull requests

2 participants