qnm icon indicating copy to clipboard operation
qnm copied to clipboard

Bring back shell autocompletions

Open ranyitz opened this issue 2 years ago • 1 comments

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.

  1. We'll show the user autocompletions based on the list of modules exists in the node_modules.
  2. We can save the last "qnm queries" and sort them to be first.
  3. We can use levenshtein distance to still give good completions even if there are typos.

ranyitz avatar Mar 06 '23 09:03 ranyitz

We can save only successful queries to the cache so mistakes won't be saved

ranyitz avatar Mar 06 '23 09:03 ranyitz