faho · GitHub

On StackOverflow someone complained that it's sometimes unwanted to turn something like /etc/ft into /etc/fstab.

In that case it was a fuzzy match (a "fuzzy_match_subsequence_insertions_only" match to be precise), because "ft" fuzzy-matches "fstab", but really it was just a typo.

Of course it's always possible to use undo (well, once 3.2 is released), but that requires an extra binding you have to know about.

I think we might find a way to do better.

Some idle ideas:

  • Always open the pager if the match is fuzzy
  • Allow "cancel" (i.e. escape) to undo a completion if pressed right after it (this would work for all types of completion matches)

Read the original on github.com ↗