zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
48.05k stars 2.84k forks source link

Manually tirggering copilot::Suggest broken with show_inline_completions = false #8637

Open LFSCamargo opened 7 months ago

LFSCamargo commented 7 months ago

Check for existing issues

Describe the feature

The ideal way would be configuring a hotkey to trigger inline suggestions

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

No response

Moshyfawn commented 7 months ago

If I understand you correctly, you're looking for alt-\.

LFSCamargo commented 7 months ago

There's any way to replace that hotkey with something else?

Moshyfawn commented 7 months ago

There's any way to replace that hotkey with something else?

You can open the default keybindings by opening the command pallet by pressing cmd-shift-p and selecting zed: open default keymap. There you will see all the keymaps that you can override by selecting zed: open keymap from the command palette and constructing your own keymaps.

If you want to change the suggested key combination, you can find the copilot::Suggest command and override it in the keymaps.json file, for example like this

[
  {
    "context": "Editor && mode == full",
    "bindings": {
      "ctrl-shift-right": "copilot::Suggest"
    }
  }
]
Moshyfawn commented 7 months ago

You can find out more in the Key bindings docs.

alex35mil commented 4 months ago

It seems like in the current stable, it is all or nothing.

You can have it either turned on

"show_copilot_suggestions": true

and it auto pops up as you type.

Or it is turned off

"show_copilot_suggestions": false

and then copilot::Suggest does nothing.

notpeter commented 3 months ago

Hi @alex35mil,

I can reproduce the issue you are seeing. After I disable inline completions (either per-language or globally) triggering copilot::Suggest does nothing. I believe this is a bug.

Second, unrelated to your issue show_copilot_suggestions will be deprecated shortly. Please switch to use show_inline_completions going forward.

obermillerk commented 2 months ago

just want to bump this, I hate when the completions show up automatically, but that means I can't use it all in zed with this bug 😢

HamzaFarhan commented 6 days ago

Any plans?