# Add commands to select next/previous siblings in the syntax tree \(\#35053\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ae54a4e1b8e50e5f96f58702c8347e56dcd82fb5

Requested commit: ae54a4e1b8e50e5f96f58702c8347e56dcd82fb5

Commit: ae54a4e1b8e50e5f96f58702c8347e56dcd82fb5

Tree: 20c00cdf89ba3fb6ce57c179286d4c45a8098be1

Author: Ivan Danov

Committer: GitHub

## Message

```
Add commands to select next/previous siblings in the syntax tree (#35053)

Closes #5133 and discussion
https://github.com/zed-industries/zed/discussions/33493

This PR adds two new commands to select next/previous siblings in the
syntax tree. These commands were modelled after the existing ones about
expand/shrink selection. With this PR I've added new key bindings
inspired by `helix` for previous / next / expand / shrink selections.



https://github.com/user-attachments/assets/4ef7fadb-0b82-4897-95c7-1737827bf4ac


Release Notes:

- Add commands to select next/previous siblings in the syntax tree

---------

Co-authored-by: Joseph T. Lyons <JosephTLyons@gmail.com>
```

## Parents

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

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