copilot.lua icon indicating copy to clipboard operation
copilot.lua copied to clipboard

dot repeat support for last line or word suggestion

Open AntoineGS opened this issue 6 months ago • 1 comments

Discussed in https://github.com/zbirenbaum/copilot.lua/discussions/499

Originally posted by OndrejGlembek June 11, 2025 When doing "dot repeat" after the copilot completion, neovim behaves non-deterministically, which can be seen in the . register. Is there an option to force copilot.lua to re-instert whatever copilot suggested?

I found a similar topic on the copilot.vim plugin: https://github.com/orgs/community/discussions/113446, but their solution is not applicable here.

Thank you

AntoineGS avatar Jun 11 '25 23:06 AntoineGS

Well this sucks, NeoVim does not allow writing to the . register :( Implementing this will require a surprising amount of code, though I am giving it a try.

AntoineGS avatar Jun 12 '25 00:06 AntoineGS

Closing this as it ended up being a rabbit hole and is not worth it IMO. Though if ever someone comes across this feel free to give it a try I will gladly accept a PR for it.

AntoineGS avatar Aug 28 '25 01:08 AntoineGS

Any reason you explicitly want this issue closed? The issue is still there and not fixed. Best for new users to find an existing open issue, and not raise another one.

bulletmark avatar Aug 28 '25 01:08 bulletmark

For new users a not in the README.md would be much better. I have no plans to work on this and the chances of anyone else working on this are so slim that it will end up being a forever ticket that dilutes the other issues that have a chance of getting done :) PS: Closed issues are also searchable so they should still find it.

AntoineGS avatar Aug 28 '25 02:08 AntoineGS