# git_ui: Prevent Git panel bindings in repository selector \(\#61282\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/43b5360ac8455c9f917fa342e4081c76434cb5ed)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 43b5360ac8455c9f917fa342e4081c76434cb5ed

Requested commit: 43b5360ac8455c9f917fa342e4081c76434cb5ed

Commit: 43b5360ac8455c9f917fa342e4081c76434cb5ed

Tree: a036049807efa021cb94fcd16e6f2a0d78be1dbf

Author: Mikhail Pertsev

Committer: GitHub

## Message

```
git_ui: Prevent Git panel bindings in repository selector (#61282)

# Objective

Fix Git panel keybindings intercepting input intended for the repository
selector.

With Vim mode enabled, pressing `i` in the selector focused the
commit-message editor instead of filtering repositories. Platform
keybindings could also intercept printable input such as spaces.

Fixes #57936

## Solution

Exclude the `GitRepositorySelector` context from the Git panel
changes-list bindings in the macOS, Linux, Windows, and Vim keymaps.

## Testing

Manually tested on macOS using a debug build with Vim mode enabled and a
workspace containing two Git repositories

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

---

Release Notes:

- Fixed Git repository selector input being intercepted by Git panel
keybindings, including in Vim mode.

Co-authored-by: Nathan Sobo <nathan@zed.dev>
```

## Parents

- [051e5c6a889b529895282dd377e31715f81cd030](https://git.cafe/gitcafe/zed/commit/051e5c6a889b529895282dd377e31715f81cd030?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/43b5360ac8455c9f917fa342e4081c76434cb5ed?format=markdown)
