Open giftig opened 1 month ago
For defs, prefer non-abstract definitions first; this is particularly useful in Rust since the first hit if there's a trait is going to be the method signature alone, which is probably not what you're looking for.
Can simply prefer results which end in {
, =
, or :
(depending on language and style).
Hits should be sorted according to likely relevance.
For classes / defs, highest-level definitions are likely most relevant (fewest leading spaces)
For imports, the most common import path (identical dotted path) should be ranked higher than any imports from different paths; the most-used import path is probably the best one.
For any ties on these criteria, sort alphabetical by filename and then by line number.