ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Compressor

by joernhees ST2/ST3

Open gzip & bzip2 files with Sublime Text

Details

Installs

  • Total 2K
  • Win 1K
  • OS X 540
  • Linux 329
Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5
Windows 2 1 1 3 5 1 2 0 0 0 2 3 2 6 0 1 2 1 0 0 0 0 2 0 1 2 1 0 1 0 1 4 1 3 1 1 2 3 0 3 3 2 0 2 0 1
OS X 1 0 0 0 1 2 0 0 1 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 1 2 0 0 0 1 0 1 0 2 0 0 0 0 1 2 1 0 1 0 2 2
Linux 0 0 0 0 1 1 0 0 0 0 0 0 2 0 0 2 0 1 0 1 0 0 0 1 0 2 0 0 0 0 0 2 0 0 0 0 7 0 0 0 1 0 0 1 1 1

Readme

Source
raw.​githubusercontent.​com

sublime-compressor

Small plugin which transparently decompresses gzip (.gz) and bzip2 (.bz2) files when opened in Sublime Text.

This is an alpha release, use with care, feedback & code welcome!

When opening a new file this plugin will check the filename for a known compression suffix (.gz,.bz2 currently). If this matches, the useless binary view of the file will be closed and a new temporary file will be opened, filled with the decompressed content.

Installation

As usual via Package Control.

Current limitations (feedback & code welcome)

  • read only (would be cool if compressed file was substituted on save)
  • compressed file contents are assumed to be 'utf-8' encoded (maybe decompress into temp file which is opened the normal way instead? (allows for encoding detection))
  • single threaded (decompression should take place in bg thread)
  • no partial decompression (full file is decompressed and inserted in new file, maybe it's possible to just decompress a window)
  • no xz, lzma, flat zip-file support
  • compressor detection only based on filename, maybe use something similar to the file command
  • re-opening compressed file that is opened in a tab already will not jump to that tab but decompress it into a second copy