pub fn suggest_sessions(
query: &str,
all_names: &[(String, String)],
max_suggestions: usize,
) -> Vec<Suggestion>Expand description
Suggest sessions similar to the given query.
Searches through all_names (a slice of (session_name, uuid) tuples)
using three strategies:
- Levenshtein distance (case-insensitive) with scaled threshold
- Substring containment (case-insensitive)
- UUID prefix match (case-sensitive)
Results are sorted by distance ascending, then alphabetically for ties,
and truncated to max_suggestions.