Coder Social home page Coder Social logo

Icon for .fileextension about colorls HOT 2 OPEN

CavalcanteLeo avatar CavalcanteLeo commented on May 26, 2024 3
Icon for .fileextension

from colorls.

Comments (2)

ayushpoddar avatar ayushpoddar commented on May 26, 2024

The section on Custom configurations is incomplete in this regard.

The file files.yaml only holds the mapping between the type of file (not necessarily the file extension) and the corresponding icon to be used. For example it is quite common to interchangeably use yml and yaml as the extension for YAML files. files.yaml only holds the mapping for yml.

So, what does the program do when the file extension is yaml?

The program first refers the file file_aliases.yaml. It lies in the same directory as files.yaml. It basically maps various file extensions to types of files. I suggest you check the file in the link provided. You should be able to understand easily what I mean.

So, before defining the icon mapping in files.yaml, you should probably update file_aliases.yaml first. This is the code that determines the file type from the extension of the file, and this line loads the corresponding icon.

from colorls.

avdv avatar avdv commented on May 26, 2024

This is a duplicate of #469 which has a PR in #577.

\edit: except for the last pattern: *.test.ts -- this is a new feature, we basically would have to implement glob matching (like ls does for colors) or suffix matching at least.

from colorls.

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.