add 'did you mean?' typo suggestion to install: when a package name has 0 search results, closestPackage() prefix-searches for candidates and ranks by case-insensitive Levenshtein (editDistance); if the best is typo-close (threshold max(2,len/3)) it prints ':: <q> not found โ did you mean <pkg>?' and confirms before installing, else the plain not-found error. Verified on kyoshi: firefux->firefox, ripgrp->ripgrep, zzzzqqq->not found. build+tests green incl editDistance test
$ koh steal kepr.uk/nina@4871502e9c71
·
parent: f7a6d8142581
discussion
log in to leave a comment.