Skip to content

Commit 7b85d65

Browse files
committed
Update completion files with --log argument
1 parent a9ae5ef commit 7b85d65

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

contrib/completion/hx.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ _hx() {
1616
COMPREPLY=($(compgen -W "$languages" -- $2))
1717
;;
1818
*)
19-
COMPREPLY=($(compgen -fd -W "-h --help --tutor -V --version -v -vv -vvv --health -g --grammar --vsplit --hsplit -c --config" -- $2))
19+
COMPREPLY=($(compgen -fd -W "-h --help --tutor -V --version -v -vv -vvv --health -g --grammar --vsplit --hsplit -c --config --log" -- $2))
2020
;;
2121
esac
2222
} && complete -F _hx hx

contrib/completion/hx.elv

+7-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ set edit:completion:arg-completer[hx] = {|@args|
3636
edit:complete-filename $args[-1] | each { |v| put $v[stem] }
3737
return
3838
}
39+
# When we have --log, we need a file
40+
if (has-values "log" $args[-2]) {
41+
edit:complete-filename $args[-1] | each { |v| put $v[stem] }
42+
return
43+
}
3944
}
4045
edit:complete-filename $args[-1] | each { |v| put $v[stem]}
4146
$candidate "--help" "(Prints help information)"
@@ -46,4 +51,5 @@ set edit:completion:arg-completer[hx] = {|@args|
4651
$candidate "--vsplit" "(Splits all given files vertically)"
4752
$candidate "--hsplit" "(Splits all given files horizontally)"
4853
$candidate "--config" "(Specifies a file to use for configuration)"
49-
}
54+
$candidate "--log" "(Specifies a file to write log data into)"
55+
}

contrib/completion/hx.fish

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ complete -c hx -s V -l version -d "Prints version information"
1212
complete -c hx -l vsplit -d "Splits all given files vertically into different windows"
1313
complete -c hx -l hsplit -d "Splits all given files horizontally into different windows"
1414
complete -c hx -s c -l config -d "Specifies a file to use for completion"
15+
complete -c hx -s c -l log -d "Specifies a file to write log data into"

contrib/completion/hx.zsh

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ _hx() {
1818
"--hsplit[Splits all given files horizontally into different windows]" \
1919
"-c[Specifies a file to use for configuration]" \
2020
"--config[Specifies a file to use for configuration]" \
21+
"--log[Specifies a file to write log data into]" \
2122
"*:file:_files"
2223

2324
case "$state" in

0 commit comments

Comments
 (0)