refactor: rearrange in workspaces

This commit is contained in:
iff 2024-12-08 13:21:14 +01:00
parent b186394e18
commit 000b50c211
35 changed files with 554 additions and 39 deletions

View file

@ -1,22 +0,0 @@
command = "cp"
[[match_err]]
pattern = [
"-r not specified",
]
suggest = [
'''
{{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:]}} '''
]