1 # Use folders which match on \\.gz$ or \\.bz2$ as [gb]zipped folders:
2 open-hook \\.gz$ "gzip -cd '%f' > '%t'"
3 close-hook \\.gz$ "gzip -c '%t' > '%f'"
4 append-hook \\.gz$ "gzip -c '%t' >> '%f'"
5 open-hook \\.bz2$ "bzip2 -cd '%f' > '%t'"
6 close-hook \\.bz2$ "bzip2 -c '%t' > '%f'"
7 append-hook \\.bz2$ "bzip2 -c '%t' >> '%f'"
8 open-hook \\.xz$ "xz -cd %f > %t"
9 close-hook \\.xz$ "xz -c %t > %f"
10 append-hook \\.xz$ "xz -c %t >> %f"