Question

When I select files in TextMate and choose "Compress Selected Items", it will create tbz file. How could I change the default to zip and not tbz?

Was it helpful?

Solution

The Compress Selected Items is a command that can be found using:

  1. Bundles → Select Bundle Item… (⌃⌘T)
  2. Enter compress
  3. Press option-return (⌥↩) to edit the item found

On the last line the (just updated version) has:

%x{tar -cjf #{dest_path.shellescape} -C #{dest_dir.shellescape}/ #{relative_paths.shelljoin}}

Change this line to call zip instead, e.g.:

%x{cd #{dest_dir.shellescape} && zip #{dest_path.shellescape} #{relative_paths.shelljoin}}

Also change ".tbz" in line 31 to ".zip".

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top