Closed IhsanGunay closed 2 years ago
I have tested it. The default action is executed.
feedkeys()
hack is not magic solution. I cannot fix it.
but leaves me at the normal mode.
You have leaved at the normal mode by <C-c>
.
Oh, I get the reason. It is bug.
Thanks Shougo! Everything works perfectly.
If anyone finds this issue in the future, you can use denite for comandline completion by pasting the file above to ~/.config/nvim/rplugin/python3/denite/source/ccomplete.py
.
Warning: I will close the issue without the minimal init.vim and the reproduction instructions.
Problems summary
I wrote a denite source to use it for command completion but -immediately-1 option doesn't just call the default action if there is only a single candidate. It echoes the candidate but leaves me at the normal mode.
Expected
Just call the default action or at least don't suppress it. I want to put the cursor back to the original position if there is no completion like the default vim behavior.
relevant mapping:
ccomplete.py: