amp
amp copied to clipboard
[Feature Request] pipe selected lines thru external command
A similar function to vi's (or vim's)
:!<range>external_command
Send selected lines to external command and replace lines by output ot the command. If no lines are selected: Insert output at current line (above?, below?).
'!' key may prompt for external command in SELECT [LINE] mode.
Hi @rialpamu! Interesting, can I ask for an example that would illustrate this use case? It might align with/be solved by other features I have in mind.
Worth addition is to maybe only do replace if the external command succeded, for example I i should pipe this through some external translation tool. And it crashes halfway, it would be nice to not have my text replaced by "segmentation fault" or whatever