I'm looking for a way emulate stdin-stdout editor in st.

In an already existing terminal emulator this is simply done by:
$ cmd1 | vipe | cmd2

But my goal is to have
$ cmd1 | st -e 'vipe' | cmd2
ran non-interactively (i.e: in a shell script).

Use case: click on a dunst notification to launch it in Vim running on st and have the output piped into some other script after Vim and st close.

Footnote: vipe is from moreutils:
NAME
       vipe - edit pipe

SYNOPSIS
       command1 | vipe | command2

DESCRIPTION
vipe allows you to run your editor in the middle of a unix pipeline and edit the data that is being piped between programs. Your editor will have the full data being piped from command1 loaded into
       it, and when you close it, that data will be piped into command2.

Avid,

Reply via email to