sxyazi / yazi

💥 Blazing fast terminal file manager written in Rust, based on async I/O.

Home Page:https://yazi-rs.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Output chooser-file or cwd directly to stdout

QiBaobin opened this issue · comments

commented

Please describe the problem you're trying to solve

For now, we have to create a temp file to communicate with other tools instead of using pipes or subshells.

Would you be willing to contribute this feature?

  • Yes, I'll give it a shot

Describe the solution you'd like

Is it be simper that just output the chooser-files if any, otherwise cwd, to the stdout?

Additional context

Regarding other events or debug information, I think we can write them to stderr or a log file, as they are only used for debug.

See #823 (comment), and here's an example https://yazi-rs.github.io/docs/tips#helix-with-zellij

Closing as already supported.

I'm going to lock this issue because it has been closed for 30 days. ⏳
This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.