Skip to content

On linux, the default format keybind conflicts with the edit_prediction::ToggleMenu keybind #29746

@zjeffer

Description

@zjeffer

Summary

Description

Because the edit_prediction::ToggleMenu and editor::Format share the same keybind (ctrl-shift-i), the edit_prediction::ToggleMenu never happens. Formatting works, though.

It would also be nice if zed had some kind of automatic way of marking keybinds as conflicting with other keybinds, so that these kinds of issues are easier to find.

Steps to reproduce:

  1. Start zed
  2. Use ctrl+shift+i to toggle the editor prediction menu
  3. It will format instead.

Expected Behavior: there should be no conflicts between keybinds
Actual Behavior: the menu never opens because of the conflict

Fixed with this keymap
[
  {
    "context": "Workspace",
    "bindings": {
      // "shift shift": "file_finder::Toggle"
    }
  },
  {
    "context": "Editor",
    "bindings": {
      // "j k": ["workspace::SendKeystrokes", "escape"]
      "ctrl-alt-l": "editor::Format",
      "ctrl-shift-i": "edit_prediction::ToggleMenu"
    }
  }
]

In my config I changed editor::Format to ctrl+alt+l, because that's the same keybind that vscode uses by default on linux.

Zed Version and System Specs

Zed: v0.184.8 (Zed) 
OS: Linux Wayland arch unknown
Memory: 30.5 GiB
Architecture: x86_64
GPU: NVIDIA GeForce RTX 3080 || NVIDIA || 570.144

Metadata

Metadata

Assignees

Labels

area:controls/keybindsKeyboard shortcuts, mapping, binding, keymaps, etcplatform:linuxhappens only on linux, not other OS

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions