-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add :pipe-to
typable command that ignores shell output
#4931
Conversation
Is this better to implement in async approach as we don't need the result? |
I can't reply for some reason, so here's my response: I tried to keep it close to how the If you want the new command to be async, then IMO so should the If we wanted we could enable async shell commands, but I'm not sure if thats good default behavior. |
Make sense to me, thanks. Although '&' or |
We could create an issue for this, and shift both the named and static That said, I would be happy to work on that once it's clear how such an implementation should be architected in the frame of helix's codebase. |
:pipe-to
typable command that ignores shell output.:pipe-to
typable command that ignores shell output
I often use an editor in conjunction with a REPL open in another terminal.
To quickly send commands from my editor to the REPL I pipe the editor selection into kitty's remote control feature:
kitty @ send-text --match recent:1 --stdin
.In kakoune I could set up a keybinding utilizing the
pipe-to
command <Alt-|> and pass the shell command directly.For helix I can only pass the command to typed arguments, but there is currently no typed command to pipe selections to shell commands while ignoring the output.
My suggestion is this:
Add a
:pipe-to
command which is essentially a copy of the:pipe
command, but usesShellBehavior::Ignore
instead of the hard-codedShellBehavior::Replace
.