~ireas/rusty-man#32: 
Improve handling of ambigous items

If there are multiple exact matches for a term, we should present the user with a list instead of just using one of them (e. g. std::env is the name of a macro and of a module).

Implementation:

  • Source::find_doc should return a Vec<_> instead of an Option<_>.
  • Sources::find should return the first non-empty vector.
  • In main, we can use select_item to let the user select one of the matching items (if there are multiple).
Status
REPORTED
Submitter
~ireas
Assigned to
No-one
Submitted
11 months ago
Updated
11 months ago
Labels
good first issue ui