nvim-telescope/telescope.nvim

Make spellrepall work with spell_suggest

ilan-schemoul opened this issue · 2 comments

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

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).

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