GithubHelp home page GithubHelp logo

Previewer for archives about hunter HOT 2 CLOSED

rabite0 avatar rabite0 commented on August 19, 2024
Previewer for archives

from hunter.

Comments (2)

rabite0 avatar rabite0 commented on August 19, 2024 1

Done!

Back when hunter used scope for previews I actually disabled previews for tar archives, because they're really slow to generate and worse, atool and I noticed even bsdtar, spawn child processes that don't get killed when their main process gets the SIGTERM/SIGKILL signal, so in a directory with many archives it was easily possible to spawn dozens of processes, all extracting the archives and thrashing the system to a halt.

I improved the subprocess tracker/killer by making use of process groups. That seems to nicely fix the problem with the left over processes.

I also made bsdtar the default previewer, since it's likely the most widely installed since it's part of libarchive, with 7z/atool as fallbacks. Since bsdtar's default column order is pretty much the opposite of what you would want in hunter (file names are on the right side and can easily get cut off) I hacked up a simple parser/rewriter along the way to make it fit in better.

At some point I want to make it possible to actually browse archives seamlessly, like they're just directories, including full r/w access. But that's for another time.

Anyway, let me know if there's anything broken. Oh, and if you didn't manually edit any previewers you can just delete ~/.config/hunter/previewers and it will update everything to the latest version.

from hunter.

rabite0 avatar rabite0 commented on August 19, 2024

BTW, you can update your config with with by running hunter -u now. If you have made any modifications however, it would overwrite them. But you can also just delete the previewer script in ~.config/hunter/previewers/definitions/archive. hunter will then re-add the missing file automatically (this is also new).

from hunter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.