rules: add touch; update formats

This commit is contained in:
iff 2023-08-07 18:35:07 +02:00
parent 2f3ba438ea
commit e214cf24ba
8 changed files with 26 additions and 30 deletions

9
rules/touch.toml Normal file
View file

@ -0,0 +1,9 @@
command = "touch"
[[match_err]]
pattern = [ "No such file or directory" ]
suggest = [
'''
mkdir --parents {{cmd::(?:\s)+(.*[\\\/])(?:\s)*}}
touch {{command[1:]}} '''
]