# gpui: Simplify \`bindings_for_action\` API \(\#34857\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1a76a6b0bfc5145cf51355ff7777b0413063a868

Requested commit: 1a76a6b0bfc5145cf51355ff7777b0413063a868

Commit: 1a76a6b0bfc5145cf51355ff7777b0413063a868

Tree: 4bf06f0bcde574dbb5717caeddd6277b379e9e8d

Author: Ben Kunkle

Committer: GitHub

## Message

```
gpui: Simplify `bindings_for_action` API (#34857)

Closes #ISSUE

Simplifies the API to no longer have a variant that returns indices. The
downside is that a few places that used to call
`bindings_for_action_with_indices` now compare `Box<dyn Action>` instead
of indices, however the result is the removal of wrapper code and index
handling that is largely unnecessary

Release Notes:

- N/A *or* Added/Fixed/Improved ...

Co-authored-by: Conrad <conrad@zed.dev>
```

## Parents

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

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