twinny icon indicating copy to clipboard operation
twinny copied to clipboard

Keyboard short cut: accept part of the FIM suggestion

Open Fadelis98 opened this issue 10 months ago • 4 comments

Is your feature request related to a problem? Please describe.

When the FIM give a long suggestion, usually I only want to accept some begining words. In github copilot, I can press ctrl → to accept only one word each time, just like I'm editing some existing line, and begin to type at any place. For multiline suggestions, I can press end to accpt the current line only as well.

Describe the solution you'd like add support for common cursor control shortcuts

Fadelis98 avatar Apr 25 '24 07:04 Fadelis98

Hey @Fadelis98 thanks for the report. Seems it never worked properly, edit, see below!

rjmacarthy avatar Apr 25 '24 07:04 rjmacarthy

OK, I did some digging, this is somehow broken on Linux maybe Mac on later vscode versions. When I updated to insiders and tested it, it starts to work again. https://code.visualstudio.com/insiders/ when the new version is released it'll be fixed.

rjmacarthy avatar Apr 25 '24 10:04 rjmacarthy

OK, I did some digging, this is somehow broken on Linux maybe Mac on later vscode versions. When I updated to insiders and tested it, it starts to work again. https://code.visualstudio.com/insiders/ when the new version is released it'll be fixed.

Thanks for your gread job, this project is amazing! It seems already work in the latest v3.11.31 version. Another problem I just noticed is that it now does not skip whitespace when using ctrl → to accept one word. This behavior is not expected and not elegent enough because it will regenerate the fim suggestion after accepting the whitespace. It will introduce extra waiting time and sometimes does not generate the same suggestion as before.

For more system information: System: Linux vscode: v1.88.1 twinny: v3.11.31

Fadelis98 avatar Apr 27 '24 06:04 Fadelis98

Please try latest insiders version of vscode. Many thanks.

rjmacarthy avatar Apr 27 '24 07:04 rjmacarthy