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

Piping input into Atom doesn't work #1729

Closed
izuzak opened this issue Mar 7, 2014 · 19 comments · May be fixed by #11184

Comments

@izuzak
Copy link
Member

@izuzak izuzak commented Mar 7, 2014

support/4aa96dda9fd511e3961e21f79eba7c86

It'd be nice if piping input into atom were possible.
git diff | atom
Right now this seems to open a second instance of Atom that immediately closes. The data goes nowhere.

This probably belongs in the feature-request arena, but also seems like something to keep track of here. Personally, I think this would be great to have. 🍩

Other reports:

  • support/e9fab3a2a94a11e39ef7d68ca2b55878
  • support/ddc261f2a5df11e39bf33f35dc393db2
@polothy

This comment has been minimized.

Copy link

@polothy polothy commented Jun 29, 2015

👍 from me, use this in the CLI all the time.

@jackflips

This comment was marked as spam.

Copy link

@jackflips jackflips commented Jul 2, 2015

Me too please.

@alexchandel

This comment has been minimized.

Copy link
Contributor

@alexchandel alexchandel commented Jul 28, 2015

This is useful for lots of things, including disassembly:

echo "foo" | atom
otool -vVjhlt /usr/lib/libSystem.B.dylib | atom
dd bs=$[128*3] count=1 if=/dev/urandom | perl -MMIME::Base64 -E 'while(read STDIN, $x, 3){print encode_base64 $x,""}' | atom
@alexchandel

This comment has been minimized.

Copy link
Contributor

@alexchandel alexchandel commented Jul 29, 2015

Another use: inspecting / modifying unknown internet scripts before use, especially ones that you don't want to sudo.

curl  https://static.rust-lang.org/rustup.sh | subl
@batjko

This comment has been minimized.

Copy link
Contributor

@batjko batjko commented Jul 29, 2015

Wonder how that would work with Windows, though. Piping is possible there only in Powershell.

@alexchandel

This comment has been minimized.

Copy link
Contributor

@alexchandel alexchandel commented Jul 30, 2015

@batjko Um... wat?

Opening cmd.exe and running echo %PATH% | perl -pe "s/;/\n/g" | perl -pE "say 'And now this:'" works as expected. So it seems to work.

@batjko

This comment has been minimized.

Copy link
Contributor

@batjko batjko commented Jul 30, 2015

I don't know about perl, never had or used it.
But if I try some standard Windows stuff, say echo "Hello" | notepad, it doesn't work.

However, I also don't get error messages, so clearly the pipe is supported in some fashion, just not many windows apps using or expecting it, I suppose.

@alexchandel

This comment has been minimized.

Copy link
Contributor

@alexchandel alexchandel commented Jul 30, 2015

@batjko that's because notepad hasn't been maintained since 1934, and easily beats IE for the title of "Most Garbage Program in Common Use" although cmd.exe comes pretty close. I can't really tell why MS hates its users so much, but they do.

On OS X, echo "hello" | subl works for Sublime Text. This is ridiculously useful.

@batjko

This comment has been minimized.

Copy link
Contributor

@batjko batjko commented Jul 30, 2015

It would be pretty neat, indeed.

@tomrossi7

This comment has been minimized.

Copy link

@tomrossi7 tomrossi7 commented Nov 28, 2017

Was this issue ever addressed?

@50Wliu 50Wliu reopened this Nov 28, 2017
@stale stale bot removed the stale label Nov 28, 2017
@50Wliu 50Wliu added the triaged label Nov 28, 2017
@50Wliu

This comment has been minimized.

Copy link
Member

@50Wliu 50Wliu commented Nov 28, 2017

@tomrossi7 sorry, there was a bug with the stale bot that prevented it from giving a warning comment before closing. I've added the triaged label so that it doesn't happen again.

@schlichtanders

This comment has been minimized.

Copy link

@schlichtanders schlichtanders commented Nov 30, 2017

so what is the status on this?

@50Wliu

This comment has been minimized.

Copy link
Member

@50Wliu 50Wliu commented Dec 3, 2017

There is no status update and no ETA for when the Atom team will have time to work on it. As indicated by the help-wanted label, we would be interested in reviewing a thought-out and well-crafted PR implementing this feature. There is #11184 but it looks like some changes need to be made before it can be merged.

@nousacademy

This comment was marked as spam.

Copy link

@nousacademy nousacademy commented Mar 26, 2018

+1 make it happen capn'!!

@gsanchezd

This comment was marked as spam.

Copy link

@gsanchezd gsanchezd commented Apr 19, 2018

👍 make it happen

@patrickreiner

This comment has been minimized.

Copy link

@patrickreiner patrickreiner commented Aug 17, 2018

I would really like to see this implemented. It's the only reason I still have TextMate installed because I can write:

git diff | mate

If git diff | atom worked that would make my life much easier.

@Marco-Sulla

This comment has been minimized.

Copy link

@Marco-Sulla Marco-Sulla commented May 5, 2019

gedit supports pipes. It's the only reason I don't disinstalled it yet... please support pipes.

@lee-dohm

This comment has been minimized.

Copy link
Member

@lee-dohm lee-dohm commented May 13, 2019

Thanks everyone for the feedback.

We discussed this in our team meeting this morning. The maintainers aren't going to be taking this on and we will be closing this issue. We would, however, be open to reviewing a well-written pull request for this feature. Because of this, I'm going to leave this labeled with help-wanted so that people interested in helping out can find it easily.

Thanks again for your interest in Atom.

@lee-dohm lee-dohm closed this May 13, 2019
@Marco-Sulla

This comment was marked as disruptive content.

Copy link

@Marco-Sulla Marco-Sulla commented May 13, 2019

...... shame on you......

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.