# Maintain keymap editor position when deleting or modifying a binding \(\#34440\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f9561da673213ad24878460cfe22d984478243c7

Requested commit: f9561da673213ad24878460cfe22d984478243c7

Commit: f9561da673213ad24878460cfe22d984478243c7

Tree: 985b51e33edcecc121c48118fa56438338b23f35

Author: Anthony Eid

Committer: GitHub

## Message

```
Maintain keymap editor position when deleting or modifying a binding (#34440)

When a key binding is deleted we keep the exact same scroll bar
position. When a keybinding is modified we select that keybinding in
it's new position and scroll to it.

I also changed save/modified keybinding to use fs.write istead of
fs.atomic_write. Atomic write was creating two FS events that some
scrollbar bugs when refreshing the keymap editor.

Co-authored-by: Ben \<ben@zed.dev\>

Release Notes:

- N/A
```

## Parents

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

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