aboutsummaryrefslogtreecommitdiff
path: root/contrib/completion/hx.elv
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/completion/hx.elv')
-rw-r--r--contrib/completion/hx.elv8
1 files changed, 7 insertions, 1 deletions
diff --git a/contrib/completion/hx.elv b/contrib/completion/hx.elv
index d3d227bc..42c88585 100644
--- a/contrib/completion/hx.elv
+++ b/contrib/completion/hx.elv
@@ -36,6 +36,11 @@ set edit:completion:arg-completer[hx] = {|@args|
edit:complete-filename $args[-1] | each { |v| put $v[stem] }
return
}
+ # When we have --log, we need a file
+ if (has-values "log" $args[-2]) {
+ edit:complete-filename $args[-1] | each { |v| put $v[stem] }
+ return
+ }
}
edit:complete-filename $args[-1] | each { |v| put $v[stem]}
$candidate "--help" "(Prints help information)"
@@ -46,4 +51,5 @@ set edit:completion:arg-completer[hx] = {|@args|
$candidate "--vsplit" "(Splits all given files vertically)"
$candidate "--hsplit" "(Splits all given files horizontally)"
$candidate "--config" "(Specifies a file to use for configuration)"
-} \ No newline at end of file
+ $candidate "--log" "(Specifies a file to write log data into)"
+}