copilot-emacs / copilot.el

An unofficial Copilot plugin for Emacs.
MIT License
1.79k stars 126 forks source link

feat: add dwim functions which trigger or accept existing completion #93

Closed jimeh closed 1 year ago

jimeh commented 1 year ago

I find this behavior useful, either after having manually dismissed a completion with C-g, or on rare occasion when Copilot doesn't offer any completions, but forcing it to with copilot-complete does bring something up.

This is based on my personal config, where I use <backtab> (shift+tab) to both force-trigger and also accept Copilot completions. This leaves <tab> free to work like normal with lsp-mode/company-mode/etc.

zerolfx commented 1 year ago

Sorry, I can't merge this PR, but thanks for your suggestion. This project aims to provide an auto-complete experience similar to VSCode while making it easy to customize/hack. So I can't incorporate all user flavors but only provide a standard one.

jimeh commented 1 year ago

That makes perfect sense, thanks for taking the time to review :)