# assistant2: Navigate context strip with keyboard \(\#23128\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 39ac6e4a7513475779f15f7aaf43f8c15746e414

Requested commit: 39ac6e4a7513475779f15f7aaf43f8c15746e414

Commit: 39ac6e4a7513475779f15f7aaf43f8c15746e414

Tree: 9f193bcef537234222c411614d1d16bec12a88b0

Author: Agus Zubiaga

Committer: GitHub

## Message

```
assistant2: Navigate context strip with keyboard (#23128)

Context pills are now focusable and intractable via the keyboard.

- <kbd>←</kbd> and <kbd>→</kbd> move the focus to the previous or next
item (wrapping if necessary)
- <kbd>↓</kbd> and <kbd>↑</kbd> move the focus vertically
- If the cursor is in the first/last row of the assistant/inline editor,
they will move the focus to the strip
- Inside the strip, they will move the focus to the pill horizontally
overlapping the most
- If already in the first/last row of the strip, they will move to the
first/last pill (like in editors)
- If the first/last pill is focused, they will move the focus back to
the editor
- <kbd>⌫</kbd>  removes the focused pill (unless it's the suggested one)
- <kbd>⏎</kbd> accepts the suggested pill if focused
  


https://github.com/user-attachments/assets/040bc71c-a3ae-4961-9886-2d5c3d290a73



Release Notes:

- N/A
```

## Parents

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

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