Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open neatvi taking stdin as entry #74

Open
lobre opened this issue Nov 29, 2023 · 3 comments
Open

Open neatvi taking stdin as entry #74

lobre opened this issue Nov 29, 2023 · 3 comments

Comments

@lobre
Copy link
Contributor

lobre commented Nov 29, 2023

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.

@kyx0r
Copy link
Contributor

kyx0r commented Jan 11, 2024

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

@lobre
Copy link
Contributor Author

lobre commented Jan 12, 2024

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?

@polluks
Copy link
Contributor

polluks commented May 7, 2024

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

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

No branches or pull requests

3 participants