Skip to content
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

Support (or documentation) for copilot::Toggle to enable/disable automatic suggestions #9303

Open
1 task done
brandondrew opened this issue Mar 13, 2024 · 5 comments
Open
1 task done
Labels
ai Improvement related to Assistant, Copilot, or other AI features copilot AI feedback for Copilot enhancement [core label] inline completion Umbrella label for Copilot, Supermaven, etc. completions

Comments

@brandondrew
Copy link

Check for existing issues

  • Completed

Describe the feature

The documentation (and comments in various files) give information such as this:

Show Copilot Suggestions

  • Description: Whether or not to show Copilot suggestions as you type or wait for a copilot::Toggle.
  • Setting: show_copilot_suggestions
  • Default: true

Options

boolean values


and yet nowhere (that I can find) is copilot::Toggle defined. Is this a keystroke that I can add to my settings or keymap file?

I would like to avoid having Copilot spew suggestions while I'm in the middle of typing code, but I want to be able to tell it to make suggestions when I want them. As far as I can tell, this is not possible with the current version of Zed.

If it is possible, I would love to know how to do it.

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

No response

@brandondrew brandondrew added admin read Pending admin review enhancement [core label] triage Maintainer needs to classify the issue labels Mar 13, 2024
@brandondrew
Copy link
Author

Poking around in the documentation for the keymap.json file I noticed that namespace::Verb is a ubiquitous pattern, so I thought I had found the answer, however the following returned an error ("Value not accepted" followed by a list of valid values), so I think copilot::Toggle might be a mistake in the documentation.

[
  {
    "context": "Editor",
    "bindings": {
      "ctrl-shift-I": "copilot::Toggle"
    }
  }
]

I tried substituting a valid value, but it still doesn't work:

[
  {
    "context": "Editor",
    "bindings": {
      "ctrl-shift-I": "copilot::Suggest"
    }
  }
]

@JosephTLyons JosephTLyons added copilot AI feedback for Copilot and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Mar 14, 2024
@JosephTLyons
Copy link
Collaborator

I'm not entirely sure that there's not some way to fiddle with the keybindings.json file to get this to work, but my gut instinct is that we currently can't. Happy to hear I'm wrong, if someone on the team knows differently.

@bofm
Copy link

bofm commented May 20, 2024

+1 to the topic. It wasn't easy to find this issue. Maybe we could change the issue title somehow? I was searching for something like "zed copilot disable auto-suggestion".

@brandondrew brandondrew changed the title Support (or documentation) for copilot::Toggle Support (or documentation) for copilot::Toggle to enable/disable automatic suggestions May 22, 2024
@brandondrew
Copy link
Author

+1 to the topic. It wasn't easy to find this issue. Maybe we could change the issue title somehow? I was searching for something like "zed copilot disable auto-suggestion".

I edited the title... it's a little bit long but maybe it will be easier to find now.

@JosephTLyons JosephTLyons added the inline completion Umbrella label for Copilot, Supermaven, etc. completions label Jun 12, 2024
@sebastiansandqvist
Copy link

It looks like copilot::toggle used to exist (ebd06b4) and that as of PR #2316 it was possible to toggle on/off with a keybinding. Unsure when this support was removed, but I'm hoping this context helps restore that functionality since enabling copilot on-demand was something I was also trying to do.

@JosephTLyons JosephTLyons added the ai Improvement related to Assistant, Copilot, or other AI features label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai Improvement related to Assistant, Copilot, or other AI features copilot AI feedback for Copilot enhancement [core label] inline completion Umbrella label for Copilot, Supermaven, etc. completions
Projects
None yet
Development

No branches or pull requests

4 participants