Giter VIP home page Giter VIP logo

Comments (3)

DLFW avatar DLFW commented on June 2, 2024 1

Hey @kamiyaa, another 2 cents from me:

I think it would be good to dismantle this option. It originates from a time before a preview was even implemented. For files where some meta-data is shown (like for most non-text files like videos, etc.), the file-size does not matter. Same holds for image-thumbs. And no matter if we display just the content of a text file or some meta-data, the preview-script can handle that decision. There is not need to share this preview-logic over an external script and hard-coded Joshuto config-options.

I have set this value to some insane high number since basically forever. Just to get that out of the way. I doubt that this has some actual use for somebody.

Different opinions?

from joshuto.

kamiyaa avatar kamiyaa commented on June 2, 2024 1

Hey @kamiyaa, another 2 cents from me:

I think it would be good to dismantle this option. It originates from a time before a preview was even implemented. For files where some meta-data is shown (like for most non-text files like videos, etc.), the file-size does not matter. Same holds for image-thumbs. And no matter if we display just the content of a text file or some meta-data, the preview-script can handle that decision. There is not need to share this preview-logic over an external script and hard-coded Joshuto config-options.

I have set this value to some insane high number since basically forever. Just to get that out of the way. I doubt that this has some actual use for somebody.

Different opinions?

True, you have a point. I believe this option was mostly carried over from ranger.
But it does make sense to move the logic to the preview script side and let the preview scripts determine whether they want to output a preview or not.

from joshuto.

kamiyaa avatar kamiyaa commented on June 2, 2024

This is configured here
https://github.com/kamiyaa/joshuto/blob/main/docs/configuration/joshuto.toml.md

max_preview_size

from joshuto.

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.