# keymap_ui: Add ability to delete user created bindings \(\#34248\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7915b9f93f5c096dad26a5e535ebd793e84ad964

Requested commit: 7915b9f93f5c096dad26a5e535ebd793e84ad964

Commit: 7915b9f93f5c096dad26a5e535ebd793e84ad964

Tree: c44c8ffda90cfc425385ac2cec038d4a9262ef00

Author: Ben Kunkle

Committer: GitHub

## Message

```
keymap_ui: Add ability to delete user created bindings (#34248)

Closes #ISSUE

Adds an action and special handling in `KeymapFile::update_keybinding`
for removals. If the binding being removed is the last in a keymap
section, the keymap section will be removed entirely instead of left
empty.

Still to do is the ability to unbind/remove non-user created bindings
such as those in the default keymap by binding them to `NoAction`,
however, this will be done in a follow up PR.

Release Notes:

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

## Parents

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

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