ZIm/crates/collab/src/llm/db
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
..
queries file_finder: Remove common segments of long paths in search results (#25049) 2025-02-18 10:09:15 -05:00
tables collab: Add usage-based billing for LLM interactions (#19081) 2024-10-11 13:36:54 -04:00
tests collab: Add support for a custom monthly allowance for LLM usage (#19525) 2024-10-21 17:12:33 -04:00
ids.rs collab: Sort LLM database ID types (#19083) 2024-10-11 13:57:48 -04:00
queries.rs collab: Add usage-based billing for LLM interactions (#19081) 2024-10-11 13:36:54 -04:00
seed.rs Remove Qwen2 model (#18444) 2024-09-27 13:30:25 -04:00
tables.rs collab: Add usage-based billing for LLM interactions (#19081) 2024-10-11 13:36:54 -04:00
tests.rs Test some billing events logic (#19094) 2024-10-11 16:21:21 -04:00