diff --git a/book/src/generated/typable-cmd.md b/book/src/generated/typable-cmd.md index 0aae18857558..66e6ac039c26 100644 --- a/book/src/generated/typable-cmd.md +++ b/book/src/generated/typable-cmd.md @@ -73,4 +73,3 @@ | `:pipe` | Pipe each selection to the shell command. | | `:pipe-to` | Pipe each selection to the shell command, ignoring output. | | `:run-shell-command`, `:sh` | Run a shell command | -| `:commands`, `:cmds` | Run commands together, use && to sepearte them | diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index 1a20e070b9d7..2f4f10e4ec20 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -1822,31 +1822,6 @@ fn run_shell_command( Ok(()) } -fn cmds(cx: &mut compositor::Context, args: &[Cow], event: PromptEvent) -> anyhow::Result<()> { - if event != PromptEvent::Validate { - return Ok(()); - } - - let mut start; - let mut end = 0; - loop { - start = if end == 0 { 0 } else { end + 1 }; - end = start + 1; - while end < args.len() { - if args[end] == "&&" { - break; - } - end += 1; - } - - if start >= end || start >= args.len() { - break; - } - process_cmd(cx, &args[start..end].join(" "), event)?; - } - Ok(()) -} - pub fn process_cmd( cx: &mut compositor::Context, input: &str, @@ -2398,13 +2373,6 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[ fun: run_shell_command, completer: Some(completers::directory), }, - TypableCommand { - name: "commands", - aliases: &["cmds"], - doc: "Run commands together, use && to sepearte them", - fun: cmds, - completer: Some(completers::filename), - }, ]; pub static TYPABLE_COMMAND_MAP: Lazy> =