Skip to content

Need a keyboard shortcut to disable and enable copilot suggestions #114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
arunib opened this issue May 21, 2025 · 3 comments
Open

Need a keyboard shortcut to disable and enable copilot suggestions #114

arunib opened this issue May 21, 2025 · 3 comments

Comments

@arunib
Copy link

arunib commented May 21, 2025

Sometimes copilot suggestions may not be relevant for the file being opened.
It would be good to have a default key binding to enable and disable copilot suggestions.
Ofcourse I can define a custom one. But this seems to be basic feature and must be available widely.

@yermulnik
Copy link

key binding to enable and disable copilot suggestions

Would be great to have such default keybinding to toggle the state I guess.

@japorized
Copy link

I'd argue against a default.

There's a time when every vim plugin offered default keybinds to their features, and we were drowned in unset-ing those keybinds and resetting them to something else, which actually increases the size of our configs. It also forces users to have to fight with conflicting keybinds whenever they introduce a new plugin to their editor.

Furthermore, the way of which we arrange our mnemonics may differ, either subtly or wildly so. So the benefits of a default becomes somewhat dubious, when you consider that it would be in most people's interest to use their own keybinds instead.

@yermulnik
Copy link

yermulnik commented May 22, 2025

I'd argue against a default.

While I do agree with the key idea in general, I'd like to point out that copilot.vim allows to turn off all mappings altogether and, if not, then adds its default keybindings if they're not taken already: https://github.com/github/copilot.vim/blob/release/plugin/copilot.vim#L73-L109

UPD (for clarity): so I'd expect the new mapping/keybinding to be added using the same approach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants