aligrudi / neatvi

A small vi/ex editor for editing bidirectional UTF-8 text

Home Page:http://litcave.rudi.ir/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open neatvi taking stdin as entry

lobre opened this issue · comments

I don't know if this is something doable in vi/nvi but in vim/nvim or kakoune, you can redirect the output of a command in the shell to the editor.

git ls-files | vim -
git ls-files | kak

Would it be something that would make sense to have in neatvi? It can serve to have initial data for a new file or to serve as a pager to quickly review the output of a command.

In case you haven't seen it already, Nextvi implements this feature as a patch.
It might not be trivial to adapt to Neatvi codebase, but at least you could use this as a starting point:
stdin_pipe.patch

That is a nice feature that enables interesting workflow in a UNIX philosophy. Thank you for posting that.

Is such a patch too complicated to be adapted to neatvi's codebase @aligrudi?

@kyx0r BSD vi says: ex/vi: Vi's standard input and output must be a terminal.
Maybe master Neatvi should also complain.