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

Compressor

by joernhees ALL

Open gzip & bzip2 files with Sublime Text

Details

Installs

  • Total 3K
  • Win 1K
  • Mac 699
  • Linux 397
Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 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
Windows 0 0 0 1 0 1 1 0 0 2 2 0 2 1 2 0 0 1 0 1 1 1 1 1 0 0 0 0 3 1 0 0 2 0 0 3 1 2 0 0 1 0 3 0 0 0
Mac 0 0 0 0 0 1 1 0 0 2 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 0 2 0 0 0 0 0 0 1 0
Linux 0 1 0 0 0 0 2 0 0 2 0 0 0 0 2 0 1 0 0 0 0 0 1 1 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 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