mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2026-02-02 15:45:11 +01:00
rules: enhance cp, mv
This commit is contained in:
parent
2533fbfdcc
commit
22ef0f2b0a
2 changed files with 13 additions and 1 deletions
|
|
@ -9,3 +9,14 @@ suggest = [
|
||||||
{{command[0]}} -r {{command[1:]}} '''
|
{{command[0]}} -r {{command[1:]}} '''
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[match_err]]
|
||||||
|
pattern = [
|
||||||
|
"cannot create directory",
|
||||||
|
]
|
||||||
|
suggest = [
|
||||||
|
'''
|
||||||
|
#[err_contains(no such file or directory)]
|
||||||
|
mkdir -p {{cmd::(?m)\s(\S+[\\\/])\S*\s*$}} && \
|
||||||
|
{{command[0]}} {{opt::\s(-[\w]+)}} {{command[1:]}} '''
|
||||||
|
]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@ command = "mv"
|
||||||
|
|
||||||
[[match_err]]
|
[[match_err]]
|
||||||
pattern = [
|
pattern = [
|
||||||
"no such file or directory"
|
"no such file or directory",
|
||||||
|
"not a directory"
|
||||||
]
|
]
|
||||||
suggest = [
|
suggest = [
|
||||||
'''
|
'''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue