You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This came up for me specifically trying to integrate ssort into the Zed editor, which expects any provided external formatter to output the new content to stdout, and take input from stdin.
The text was updated successfully, but these errors were encountered:
AndydeCleyre
changed the title
Request: flag to send output to stdout, rather than in-place editing
Request: flag(s) to take input from stdin and send output to stdout, rather than in-place editing
Oct 25, 2024
That sounds very reasonable. If you're up for writing a PR then I would be enthusiastic to help get it merged and released. I think it should just be a matter of a few small tweaks to _main.py.
I had assumed --stdout but I think you are right that there's no need. Looks like isort and black both go with option 2 so might as well be consistent with that.
This came up for me specifically trying to integrate
ssort
into the Zed editor, which expects any provided external formatter to output the new content to stdout, and take input from stdin.The text was updated successfully, but these errors were encountered: