# Make fallback open picker more intuitive \(\#37564\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ccae033d8519cffa7f61a265f05837f2ecf599de

Requested commit: ccae033d8519cffa7f61a265f05837f2ecf599de

Commit: ccae033d8519cffa7f61a265f05837f2ecf599de

Tree: 391e03e463212f2ea9dcb931fff35cbd73124bae

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Make fallback open picker more intuitive (#37564)

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

Before, the picker did not allow to open the current directory that was
just completed:

<img width="553" height="354" alt="image"
src="https://github.com/user-attachments/assets/e77793c8-763e-416f-9728-18d5a39b467f"
/>

pressing `enter` here would open `assets`; pressing `tab` would append
the `assets/` segment to the query.
Only backspace, removing `/` would allow to open the current directory.

After:
<img width="574" height="349" alt="image"
src="https://github.com/user-attachments/assets/bdbb3e23-7c7a-4e12-8092-51a6a0ea9f87"
/>

The first item is now a placeholder for opening the current directory
with `enter`.
Any time a fuzzy query is appended, the placeholder goes away; `tab`
selects the entry below the placeholder.

Release Notes:

- Made fallback open picker more intuitive

---------

Co-authored-by: Peter Tripp <petertripp@gmail.com>
Co-authored-by: David Kleingeld <davidsk@zed.dev>
```

## Parents

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

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