Unnamed repository; edit this file 'description' to name the repository.
feat: add ! alias for sh and | for pipe (#13263)
Jason Fuchs 11 months ago
parent 9cfb8af · commit 46f7cdb
-rw-r--r--book/src/generated/typable-cmd.md4
-rw-r--r--helix-term/src/commands/typed.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/book/src/generated/typable-cmd.md b/book/src/generated/typable-cmd.md
index dc5a6d08..219f6b95 100644
--- a/book/src/generated/typable-cmd.md
+++ b/book/src/generated/typable-cmd.md
@@ -78,9 +78,9 @@
| `:log-open` | Open the helix log file. |
| `:insert-output` | Run shell command, inserting output before each selection. |
| `:append-output` | Run shell command, appending output after each selection. |
-| `:pipe` | Pipe each selection to the shell command. |
+| `: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 |
+| `:run-shell-command`, `:sh`, `:!` | Run a shell command |
| `:reset-diff-change`, `:diffget`, `:diffg` | Reset the diff change at the cursor position. |
| `:clear-register` | Clear given register. If no argument is provided, clear all registers. |
| `:redraw` | Clear and re-render the whole UI |
diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs
index a7d1c5f0..5274c280 100644
--- a/helix-term/src/commands/typed.rs
+++ b/helix-term/src/commands/typed.rs
@@ -3450,7 +3450,7 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
},
TypableCommand {
name: "pipe",
- aliases: &[],
+ aliases: &["|"],
doc: "Pipe each selection to the shell command.",
fun: pipe,
completer: SHELL_COMPLETER,
@@ -3466,7 +3466,7 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
},
TypableCommand {
name: "run-shell-command",
- aliases: &["sh"],
+ aliases: &["sh", "!"],
doc: "Run a shell command",
fun: run_shell_command,
completer: SHELL_COMPLETER,