feat: fuzzy search not found commands

This commit is contained in:
iff 2023-07-31 18:46:35 +02:00
parent 86ae6a6fb4
commit 135abc75b6
5 changed files with 177 additions and 27 deletions

10
rules/no_command.toml Normal file
View file

@ -0,0 +1,10 @@
command = "no_command"
[[match_err]]
pattern = [
"command not found"
]
suggest = [
'''
{{typo[0](path)}} {{command[1:]}}'''
]