# Improve Helix insert \(\#34765\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a6956eebcbf87ed36fe3cc82bd204b8ae6b997f0

Requested commit: a6956eebcbf87ed36fe3cc82bd204b8ae6b997f0

Commit: a6956eebcbf87ed36fe3cc82bd204b8ae6b997f0

Tree: f192ebb625af733526f6cae4256d0c5839c6a528

Author: Pablo Ramón Guevara

Committer: GitHub

## Message

```
Improve Helix insert (#34765)

Closes #34763 

Release Notes:

- Improved insert in `helix_mode` when a selection exists to better
match helix's behavior: collapse selection to avoid replacing it
- Improved append (`insert_after`) to better match helix's behavior:
move cursor to end of selection if it exists
```

## Parents

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

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