cosmic-files icon indicating copy to clipboard operation
cosmic-files copied to clipboard

[Feature Request] Compress/Extract Options

Open nathansgithub opened this issue 1 year ago • 5 comments

One feature I really like in Nautilus is the right-click archive options, and I would love if you could replicate that here.

This is the "Extract Here" and "Extract to" options on various formats of zipped/archive file, and the "Compress" option on any one or more selected files.

nathansgithub avatar Apr 18 '24 19:04 nathansgithub

If you all are willing to merge this, I might take a stab at coding these.

nathansgithub avatar Apr 18 '24 21:04 nathansgithub

@nathansgithub this is a feature we'd merge if implemented.

WatchMkr avatar May 25 '24 18:05 WatchMkr

Secondary click options:

Compress Extract Extract to...

MVP for compress > make a .zip archive in the current directory. MVP+1 password protected zip archives with dialog for choice and name.

WatchMkr avatar Aug 08 '24 02:08 WatchMkr

This feature is needed ASAP. I'm tired of launching terminal every-time to extract a compressed file.

iamkartiknayak avatar Aug 12 '24 14:08 iamkartiknayak

I made a PR for an MVP to handle extracting .zip files to the current directory: https://github.com/pop-os/cosmic-files/pull/370

Adding dialogues for the other pieces will be a little more involved, and I'm not sure what the preferred way to handle other archive types would be, but I think this piece is useful by itself.

nathansgithub avatar Aug 12 '24 16:08 nathansgithub

We now have support for compressing to .tgz and .zip, and for extracting .tar, .tgz, and .zip. We will leave this open for more archive types to be supported.

jackpot51 avatar Sep 11 '24 14:09 jackpot51

I've added support for .tar.bz2/.tbz and .tar.xz/.txz. Support for password encoded zip files will be next.

jackpot51 avatar Sep 17 '24 18:09 jackpot51