zed icon indicating copy to clipboard operation
zed copied to clipboard

While in keyboard focus, typing characters inside file tree pane (or `CMD+F` dedicated filename search popup) to quickly find/highlight-all files with matching names (fuzzy text search, same as `CMD+P`)

Open danielweck opened this issue 1 year ago • 0 comments

Check for existing issues

  • [X] Completed

Describe the feature

This is a "nice to have" feature. The CMD+P command already offers quick-access to workspace files using the same letter matching algorithm.

When exploring a long list of files in a Zed workspace (e.g. > zed node_modules/.bin/) it would be nice to be able to just type characters when the file tree is in keyboard focus (CMD+B or CMD+SHIFT+E), in order to quickly find/highlight all matching files (i.e. fuzzy text search / non-consecutive-but-in-the-correct-order sequence of letters, just like CMD+P) ... and then hit arrow keys + space to open the desired file(s).

Alternatively (instead of the instant "search as you type" UX), CMD+F could trigger a special search tool dedicated to matching filenames instead of file contents (like Visual Studio Code, see attached screenshot below)

Rationale: there are situations when I find that the CMD+P user experience lacks contextual information (it only shows matched filenames, not the surrounding file tree siblings).

The Visual Studio Code screenshot below demonstrates the optional "filtering" option (activated in the dedicated search toolbar's icon checkbox), as well as the unfiltered list with all matching filename highlights.

If applicable, add mockups / screenshots to help present your vision of the feature

Screenshot 2024-02-01 at 10 38 00 Screenshot 2024-02-01 at 10 48 09

danielweck avatar Feb 01 '24 10:02 danielweck