Skip to content

The only matching key binding doesn't match but marked as "low precedence" #32667

Open
@bofm

Description

@bofm

Summary

There is something wrong with the key binding precedence processing. In some cases a keybinding won't trigger an action but just report it as low precedence event if it is the only matching keybinding.

User keymap config:

[
  {
    "context": "Pane > Editor",
    "bindings": { "alt-i": "editor::Hover" }
  },
  {
    "context": "GitPanel",
    "bindings": { "alt-i": "git_panel::GenerateCommitMessage" }
  }
]

Key context view

In the editor tab buffer

Image

In the Git panel in the commit message editor

Image

Expected Behavior: in the Git panel alt-i matches and triggers git_panel::GenerateCommitMessage
Actual Behavior: in the Git panel alt-i doesn't match but is just marked as low precedence

Zed Version and System Specs

Zed: v0.190.5 (Zed)
OS: macOS 14.7.0
Memory: 32 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions