ZIm/crates/assistant2/src
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
..
context_picker Omit gitignored files from context file picker (#23777) 2025-01-28 11:40:42 -03:00
ui Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
active_thread.rs assistant2: Add tiny visual adjustments (#23748) 2025-01-27 20:26:34 -03:00
assistant.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
assistant_configuration.rs assistant2: Tweak the settings UI (#23845) 2025-01-29 16:20:09 -03:00
assistant_model_selector.rs Fix hover tooltips appearing after related element is pressed (#24540) 2025-02-10 00:16:12 +00:00
assistant_panel.rs Display case-sensitive keybindings for vim commands (#24322) 2025-02-14 22:03:59 -07:00
buffer_codegen.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
context.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
context_picker.rs Remove more references to 'model' in GPUI APIs (#23693) 2025-01-27 04:00:27 +00:00
context_store.rs Rename model based variable names to entity (#24198) 2025-02-04 10:24:35 -08:00
context_strip.rs file_finder: Remove common segments of long paths in search results (#25049) 2025-02-18 10:09:15 -05:00
inline_assistant.rs file_finder: Remove common segments of long paths in search results (#25049) 2025-02-18 10:09:15 -05:00
inline_prompt_editor.rs file_finder: Remove common segments of long paths in search results (#25049) 2025-02-18 10:09:15 -05:00
message_editor.rs Display case-sensitive keybindings for vim commands (#24322) 2025-02-14 22:03:59 -07:00
terminal_codegen.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
terminal_inline_assistant.rs Remove more references to 'model' in GPUI APIs (#23693) 2025-01-27 04:00:27 +00:00
thread.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
thread_history.rs assistant2: Add tiny visual adjustments (#23748) 2025-01-27 20:26:34 -03:00
thread_store.rs assistant2: Don't block ThreadStore initialization on reloading the threads (#23728) 2025-01-27 12:59:28 -05:00
ui.rs assistant2: Sketch in sending file context to model (#21829) 2024-12-10 16:35:53 -05:00