Mercurial > forks > helix
changeset 6703:a66688bc4abf
feat: add ! alias for sh and | for pipe (#13263)
author | Jason Fuchs <157738564+jasonfuchs@users.noreply.github.com> |
---|---|
date | Mon, 07 Apr 2025 18:00:45 +0200 |
parents | f05a3d9ba708 |
children | 39b75234b184 |
files | book/src/generated/typable-cmd.md helix-term/src/commands/typed.rs |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/book/src/generated/typable-cmd.md Mon Apr 07 18:00:03 2025 +0300 +++ b/book/src/generated/typable-cmd.md Mon Apr 07 18:00:45 2025 +0200 @@ -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 |
--- a/helix-term/src/commands/typed.rs Mon Apr 07 18:00:03 2025 +0300 +++ b/helix-term/src/commands/typed.rs Mon Apr 07 18:00:45 2025 +0200 @@ -3450,7 +3450,7 @@ }, TypableCommand { name: "pipe", - aliases: &[], + aliases: &["|"], doc: "Pipe each selection to the shell command.", fun: pipe, completer: SHELL_COMPLETER, @@ -3466,7 +3466,7 @@ }, TypableCommand { name: "run-shell-command", - aliases: &["sh"], + aliases: &["sh", "!"], doc: "Run a shell command", fun: run_shell_command, completer: SHELL_COMPLETER,