GithubHelp home page GithubHelp logo

Comments (3)

sharkdp avatar sharkdp commented on May 2, 2024

I don't quite understand. Which of the .editorconfig settings would/should really have an impact on the output format of bat?

If it's only about tabs, I'm not sure re-rendering tab-characters as n spaces would really be a good idea. I would somehow like to keep the output of bat exactly the same as the file contents (except for highlighting).

from bat.

DanielTimLee avatar DanielTimLee commented on May 2, 2024

Oh, I see. Didn't realize it was trying to keep same file contents.

keep the output of bat exactly the same as the file contents (except for highlighting).

I was just wondering if bat could reformat or reindent minimized js files.

Cause, minimized js files are pretty annoying to read.
One has to open that file and re-indent or re-format file to make readable of.

Or someone like to make indent 4 -> 2 to make the code more compact.
(In my case, using bat on split tmux pane is a little bit uncomfortable. bat result is pretty huge.)

from bat.

sharkdp avatar sharkdp commented on May 2, 2024

I was just wondering if bat could reformat or reindent minimized js files.

I'm afraid that this is out of scope for bat. This would better be left to an external tool which could still be used via reformat-js test.min.js | bat -l javascript.

Cause, minimized js files are pretty annoying to read.

... because they were never meant to be read by a human? 😄

Or someone like to make indent 4 -> 2 to make the code more compact.

This would be a re-write of the file and not something that would be configurable via .editorconfig.

I'm going to close this ticket, but feel free to comment here or open a new ticket with a specific request.

from bat.

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.