Smart completion: prefer items matching by name