[dev] [st] terminal as a pipe reader

From: avidseeker <avidseeker_AT_disroot.org>
Date: Fri, 22 Aug 2025 08:55:15 +0200

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,
Received on Fri Aug 22 2025 - 08:55:15 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 22 2025 - 09:00:10 CEST