mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
feat: regex matching
This commit is contained in:
parent
a5762bf121
commit
3e367a09dd
8 changed files with 85 additions and 93 deletions
|
|
@ -4,13 +4,15 @@ command = "rm"
|
|||
pattern = [ "is a directory", ]
|
||||
suggest = [
|
||||
'''
|
||||
{{command}} --recursive'''
|
||||
{{command}} --recursive
|
||||
'''
|
||||
]
|
||||
|
||||
[[match_err]]
|
||||
pattern = [ "no such file or directory", ]
|
||||
suggest = [
|
||||
'''
|
||||
{{command[0}} {{opt(-*)}} {{typo[-1](file)}}'''
|
||||
{{command[0}} {{opt::(?:\s)-[\w]+}} {{typo[-1](file)}}
|
||||
'''
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue