Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zstd #1105

Closed
roland-5 opened this issue Jul 11, 2021 · 6 comments
Closed

zstd #1105

roland-5 opened this issue Jul 11, 2021 · 6 comments
Labels

Comments

@roland-5
Copy link

Is your feature request related to a problem? Please describe.
I can't open .zst .tar.zst archives.
I am currently using Zstandard for archiving files, but the distribution I am using, Arch, provides applications in the .tar.zst archive format and I need to check their contents or extract them.

Describe the solution you'd like
Add somehow Zstandard, but I'm not sure how. As I see atool and bsdtar doesn't support .zst. I found patool as a more recent incarnation of atool, but it doesn't support Zstandard either.

Describe alternatives you've considered
If not via atool, patool, bsdtar is some nnn plugin that already does this?

Additional context

Add any other context or screenshots about the feature request here.

Consider contributing

Please consider contributing the feature back to nnn.

Feel free to discuss in the ToDo list thread. We are more than happy to help.

@jarun
Copy link
Owner

jarun commented Jul 11, 2021

Add somehow Zstandard, but I'm not sure how. As I see atool and bsdtar doesn't support .zst. I found patool as a more recent incarnation of atool, but it doesn't support Zstandard either.

Doesn't look like Zstandard is widely adopted yet. nnn uses atool/bsdtar internally so we can't do much natively. However, you can always write 2 plugins - one to archive and one to extract zst and assign 2 keybinds to them if that format is so important to you. I think you can also merge them into 1 i.e. if the file extension has .zst extract instead of archiving,

@jarun jarun closed this as completed Jul 11, 2021
@eugene55
Copy link

eugene55 commented Jul 22, 2021

I don't like to comment on closed issues but Arch's bsdtar in fact supports zst format. To support it from nnn side though, you just have to configure NNN_ARCHIVE environment variable to add zst extension to the list. After that zst will be treat as any other archive.

@jarun
Copy link
Owner

jarun commented Jul 22, 2021

Link please.

@eugene55
Copy link

@jarun
Copy link
Owner

jarun commented Jul 22, 2021

It appears the FreeBSD version does too - https://www.freebsd.org/cgi/man.cgi?query=bsdtar&sektion=1&format=html

@signed-log
Copy link
Collaborator

Debian does too (but Ubuntu doesn't):

https://manpages.debian.org/buster/libarchive-tools/bsdtar.1.en.html

@github-actions github-actions bot locked and limited conversation to collaborators Aug 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants