fix: extra newline

This commit is contained in:
iff 2023-08-01 20:58:24 +02:00
parent 295ab1e76d
commit 80b1fb51ee
4 changed files with 6 additions and 15 deletions

View file

@ -7,7 +7,5 @@ pattern = [
"nu::shell::external_command",
]
suggest = [
'''
{{typo[0](path)}} {{command[1:]}}
'''
'''{{typo[0](path)}} {{command[1:]}}'''
]

View file

@ -62,6 +62,5 @@ reflog,
remote,
repack,
replace,
)}} {{command[2:]}}
'''
)}} {{command[2:]}}'''
]

View file

@ -30,10 +30,8 @@ pattern = [
suggest = [
'''
#[executable(sudo)]
sudo {{command}}
''',
sudo {{command}}''',
'''
#[executable(doas)]
doas {{command}}
''',
doas {{command}}''',
]

View file

@ -3,16 +3,12 @@ command = "rm"
[[match_err]]
pattern = [ "is a directory", ]
suggest = [
'''
{{command}} --recursive
'''
'''{{command}} --recursive'''
]
[[match_err]]
pattern = [ "no such file or directory", ]
suggest = [
'''
{{command[0}} {{opt::(?:\s)-[\w]+}} {{typo[-1](file)}}
'''
'''{{command[0}} {{opt::(?:\s)-[\w]+}} {{typo[-1](file)}}'''
]