atom / archive-view

Open compressed files in Atom
MIT License
31 stars 32 forks source link

Allowing simple gzipped files with extension gz #30

Open yakrider opened 8 years ago

yakrider commented 8 years ago

Since this works for tar.gz / tgz code to handle gzipped files must already be here, so it is probably a simple matter of adding .gz extensions to the list?

A lot of large log text files end up being individulaling created updated as gzipped streams so would be nice to just be able to load them into Atom.

Thanks!

yuergen commented 8 years ago

I just googled my way here. This feature would be very valuable, especially since most of the docs that linux/tex distributions provide are gzip'ped. I hope you consider an implementation.

lee-dohm commented 8 years ago

I hope you consider an implementation.

If it is open, we're intending to get around to it ... eventually. But we'd also be open to someone submitting a PR for it too :grinning:

stefansundin commented 8 years ago

I was also frustrated by this, so I made a plugin to open .gz files. Check it out: gz-opener.

It can probably be improved to not require an interstitial view by extending TextEditor, but it's working pretty well as it is right now so I decided to just publish it. I might improve it later if I have the time.

I pretty much modeled it after archive-view, but it's using archive.readGzip instead of archive.readFile. I'd be happy if someone could modify archive-view to support reading .gz files. I tried but I couldn't figure out how to modify a core package, so I just decided to make a brand new package instead.

Enjoy!