# editor: Add action to move between snippet tabstop positions v2 \(\#42127\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ba136abf6cf90b2730d2782ef0fb31a268cbccb2

Requested commit: ba136abf6cf90b2730d2782ef0fb31a268cbccb2

Commit: ba136abf6cf90b2730d2782ef0fb31a268cbccb2

Tree: c0fb7f0c73551603bcb851652956b6b79705bd7d

Author: Anthony Eid

Committer: GitHub

## Message

```
editor: Add action to move between snippet tabstop positions v2 (#42127)

Closes https://github.com/zed-industries/zed/issues/41407

This PR fixes the issues that caused #41407 to be reverted in #42008.
Namely that the action context didn't take into account if a snippet
could move backwards or forwards, and the action shared the same key
mapping as `editor::MoveToPreviousWordStart` and
`editor::MoveToNextWordEnd`.

I changed the default key mapping for the move to snippet tabstop to tab
and shift-tab to match the default behavior of other editors.

Release Notes:

- Editor: Add actions to move between snippet tabstop positions
```

## Parents

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

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