Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/commands/typed.rs')
-rw-r--r--helix-term/src/commands/typed.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs
index 5274c280..8b58c7e0 100644
--- a/helix-term/src/commands/typed.rs
+++ b/helix-term/src/commands/typed.rs
@@ -2566,6 +2566,9 @@ fn noop(_cx: &mut compositor::Context, _args: Args, _event: PromptEvent) -> anyh
Ok(())
}
+// TODO: SHELL_SIGNATURE should specify var args for arguments, so that just completers::filename can be used,
+// but Signature does not yet allow for var args.
+
/// This command handles all of its input as-is with no quoting or flags.
const SHELL_SIGNATURE: Signature = Signature {
positionals: (1, Some(2)),
@@ -2574,10 +2577,10 @@ const SHELL_SIGNATURE: Signature = Signature {
};
const SHELL_COMPLETER: CommandCompleter = CommandCompleter::positional(&[
- // Command name (TODO: consider a command completer - Kakoune has prior art)
- completers::none,
+ // Command name
+ completers::program,
// Shell argument(s)
- completers::filename,
+ completers::repeating_filenames,
]);
pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[