# helix: Change f and t motions \(\#35216\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9a2b7ef372021e5bcad759a2dc871e0743b602c4

Requested commit: 9a2b7ef372021e5bcad759a2dc871e0743b602c4

Commit: 9a2b7ef372021e5bcad759a2dc871e0743b602c4

Tree: 31096881dc59b183023bf208e3e4031bb49a6e26

Author: fantacell

Committer: GitHub

## Message

```
helix: Change f and t motions (#35216)

In vim and zed (vim and helix modes) typing "tx" will jump before the
next `x`, but typing it again won't do anything. But in helix the cursor
just jumps before the `x` after that. I added that in helix mode.
This also solves another small issue where the selection doesn't include
the first `x` after typing "fx" twice. And similarly after typing "Fx"
or "Tx" the selection should include the character that the motion
startet on.

Release Notes:

- helix: Fixed inconsistencies in the "f" and "t" motions
```

## Parents

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

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