# Improve file finder ergonomics \(\#3059\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a8188a2f337bf958b9df4429647556f039084d4b

Requested commit: a8188a2f337bf958b9df4429647556f039084d4b

Commit: a8188a2f337bf958b9df4429647556f039084d4b

Tree: f27462c2fb288f34d890fdf979c455d55b95503c

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Improve file finder ergonomics (#3059)

Deals with https://github.com/zed-industries/community/issues/2086
Part of https://github.com/zed-industries/community/issues/351

Initial:
<img width="585" alt="Screenshot 2023-09-28 at 09 50 05"
src="https://github.com/zed-industries/zed/assets/2690773/e0149312-dfe3-4b7c-948c-0f593d6f540c">
First query letter input (only two history items match that, both are
preserved on top, with their order preserved also)
<img width="603" alt="Screenshot 2023-09-28 at 09 50 08"
src="https://github.com/zed-industries/zed/assets/2690773/85ab2f4c-bb9c-4811-b8b0-b5c14a370ae2">
Second query letter input, no matching history items:
<img width="614" alt="Screenshot 2023-09-28 at 09 50 11"
src="https://github.com/zed-industries/zed/assets/2690773/6d380403-a43c-4f00-a05b-88f43f91fefb">
Remove second query letter, history items match again and pop to the
top:
<img width="574" alt="Screenshot 2023-09-28 at 09 50 15"
src="https://github.com/zed-industries/zed/assets/2690773/5981ca53-6bc8-4305-ae36-27144080e1a2">


* allows `file_finder::Toggle` (cmd-p by default) to cycle through file
finder items (ESC closes the modal still)
* on query typing, preserve history items that match the query and keep
them on top, with their ordering preserved
* show history items' matched letters

Release Notes:

- Improve file finder ergonomics: allow cycle through items with the
toggle action, preserve matching history items on query input
```

## Parents

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

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

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