# Add a helix-specific substitute method \(\#38735\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 58ff46962d204097336cfc91c59ffa363fdf603e

Requested commit: 58ff46962d204097336cfc91c59ffa363fdf603e

Commit: 58ff46962d204097336cfc91c59ffa363fdf603e

Tree: e6c1a86ae004d49f9d80453ad5df71685409b9b0

Author: jneem

Committer: GitHub

## Message

```
Add a helix-specific substitute method (#38735)

`vim::Substitute` is a little different from the helix behavior, so this
PR adds helix versions. The most important difference (for my usage, at
least) is that if you're selecting whole lines then helix drops the `\n`
from the selection (much like vim's lines mode, except that helix bases
this behavior on the selection instead of having a different mode).

Release Notes:

- N/A
```

## Parents

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

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