zed icon indicating copy to clipboard operation
zed copied to clipboard

Copilot accept keybinding

Open mbriggs opened this issue 1 year ago • 3 comments

Check for existing issues

  • [X] Completed

Describe the feature

I don't know if I'm the only one who interacts with copilot this way, but I find the biggest challenge of copilot is learning how to ignore it when the suggestions are bad. Something I find helps with that is separating out copilot accept into another key bind, instead of tying it to (autocomplete accept). Typically, I will use cmd+; for this. It would be cool if there was a way to set this independently if desired :)

Thank you, zed is super cool, really looking forward to seeing where it goes!

If applicable, add mockups / screenshots to help present your vision of the feature

No response

mbriggs avatar Jan 26 '24 17:01 mbriggs

Is there any progress on this issue? It would make my workflow so much easier :) At the moment I just don't use Copilot as having the accept on Tab just intervenes too much while typing :/

raphaelluethy avatar May 10 '24 09:05 raphaelluethy

Is there any progress on this issue? It would make my workflow so much easier :) At the moment I just don't use Copilot as having the accept on Tab just intervenes too much while typing :/

You can bind them to another keymap. Unfortunately, I don't think there's a dedicated action to accept copilot suggestions, but "editor::Tab" does the job for me. I'm currently using ctrl-j to accept Copilot's suggestion

"ctrl-j": "editor::Tab"

ray-pH avatar May 14 '24 02:05 ray-pH

Is there any progress on this issue? It would make my workflow so much easier :) At the moment I just don't use Copilot as having the accept on Tab just intervenes too much while typing :/

You can bind them to another keymap. Unfortunately, I don't think there's a dedicated action to accept copilot suggestions, but "editor::Tab" does the job for me. I'm currently using ctrl-j to accept Copilot's suggestion

"ctrl-j": "editor::Tab"

Thank you for your suggestion, the main issue I have is that I would like to deactivate accepting inline suggestions when pressing tab so that i can still press tab without accepting the suggestion.

raphaelluethy avatar May 14 '24 11:05 raphaelluethy