# debugger: Improve variable list keyboard navigation \(\#27308\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bcfc9e44376e8d8d9d81235727ba83597fd7f1ad

Requested commit: bcfc9e44376e8d8d9d81235727ba83597fd7f1ad

Commit: bcfc9e44376e8d8d9d81235727ba83597fd7f1ad

Tree: 740b898d69fd328b230ac55bf2e0edad8a54094e

Author: Remco Smits

Committer: GitHub

## Message

```
debugger: Improve variable list keyboard navigation (#27308)

This PR improves the keyboard navigation for the variable list. 
Before this PR, if you want to open/close nested variables, you had to
use the right/left & up/down arrow keys.
Now you can step through with just only using your left/right arrow
keys, this feels a bit more natural and more similar to how other
editors allow you to navigate through variables.

This PR also fixes the following issues:
- Allow selecting a scope to be the start of your selection
- Allow selecting previous item if the first item is selected

-----


https://github.com/user-attachments/assets/aff0b133-97be-4c09-8ee6-b11495ad5568

Release Notes:

- N/A
```

## Parents

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

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