qnm
qnm copied to clipboard
Bring back shell autocompletions
The most frequent workflow for me, is to either retrieve a package version that I already retrieved in the past (When working on a specific problem/package) and of course trying to get a version of a package from within the repo.
Shell autocompletions are perfect for that use-case.
- We'll show the user autocompletions based on the list of modules exists in the node_modules.
- We can save the last "qnm queries" and sort them to be first.
- We can use levenshtein distance to still give good completions even if there are typos.
We can save only successful queries to the cache so mistakes won't be saved