Skip to content

Add insert-pipe and append-pipe commands.#15622

Open
mlen wants to merge 1 commit intohelix-editor:masterfrom
mlen:master
Open

Add insert-pipe and append-pipe commands.#15622
mlen wants to merge 1 commit intohelix-editor:masterfrom
mlen:master

Conversation

@mlen
Copy link
Copy Markdown

@mlen mlen commented Apr 10, 2026

Both commands behave similary to insert-output and append-output commands, except that they also pipe the selections into the command.

This PR is inspired by the now closed PR #12590.

@mlen
Copy link
Copy Markdown
Author

mlen commented Apr 10, 2026

My use-case for this is that I have a command that executes a SQL query and I'd like to have a buffer where I type in the query, select it and run it through said command.

@RoloEdits
Copy link
Copy Markdown
Contributor

Related: #13467

@mlen
Copy link
Copy Markdown
Author

mlen commented Apr 10, 2026

Thanks for pointing this out. There are a few differences IMO:

  • this one supports multiple selections (not sure how the expansion handles this)
  • piping avoids certain issues like escaping the special shell characters correctly, which I assume is out of scope of the mentioned PR, because the selection may be included in various contexts within the command

@mlen mlen force-pushed the master branch 4 times, most recently from 389ef74 to 70cb974 Compare April 16, 2026 19:08
Both commands behave similary to `insert-output` and `append-output` commands, except that they also pipe the selections into the command.

This PR is inspired by the now closed PR helix-editor#12590.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants