mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2026-02-02 07:35:10 +01:00
feat: length condition
This commit is contained in:
parent
35418e3b2b
commit
15c957e7da
3 changed files with 27 additions and 4 deletions
17
rules/c_typo.toml
Normal file
17
rules/c_typo.toml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
command = "c"
|
||||
|
||||
[[match_err]]
|
||||
pattern = [
|
||||
"command not found",
|
||||
"unknown command",
|
||||
"nu::shell::external_command"
|
||||
]
|
||||
suggest = [
|
||||
'''
|
||||
#[length(2)]
|
||||
cd {{command[1:]}} ''',
|
||||
'''
|
||||
#[min_length(3)]
|
||||
cp {{command[1:]}} '''
|
||||
]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue