ZIm/crates/semantic_index
Cole Miller 9ef0501853
file_finder: Remove common segments of long paths in search results (#25049)
This PR makes progress on #7711 by identifying any common prefix of the
paths in the file finder's search results, and replacing the "interior"
of that prefix---every path segment but the first and last---with `...`,
when a heuristic indicates that the longest path would otherwise
overflow the modal.

The elision is not applied to any segment that contains a match for the
search query.

There may be more work to do on #7711 in the case of long result paths
that do not share a significant common prefix.

Release Notes:

- Improved display of long paths in the file finder modal

Co-authored-by: Max <max@zed.dev>
2025-02-18 10:09:15 -05:00
..
examples Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
fixture Semantic Index (#10329) 2024-04-12 11:40:59 -06:00
src file_finder: Remove common segments of long paths in search results (#25049) 2025-02-18 10:09:15 -05:00
Cargo.toml Update tree-sitter to 0.24 (#24492) 2025-02-10 10:52:27 -08:00
LICENSE-GPL Semantic Index (#10329) 2024-04-12 11:40:59 -06:00