question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wildcard files.association rules do not override specific keys

See original GitHub issue

I want to make the explorer look less like a Christmas tree and one of the ways I want to do this is by using a single icon for all txt/md files. However, when I do this:

  "material-icon-theme.files.associations": {
    "*.md": "document",
    "*.txt": "document"
  },

Icons with specific icons are not overridden:

screen shot 2018-04-26 at 6 55 38 am

I would expect a wildcard to override all of them. I also don’t really want to pollute my settings file with what I think is the only workaround:

"material-icon-theme.files.associations": {
    "CODE_OF_CONDUCT.md": "document",
    "CODE_OF_CONDUCT.txt": "document",
    "CONTRIBUTING.md": "document",
    "CONTRIBUTING.txt": "document",
    "README.md": "document",
    "README.txt": "document",
    // more...?
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
gusbemacbecommented, Jun 21, 2019

Hello @PKief !

The file name which contains space does not catch icon association:

    "material-icon-theme.files.associations": 
    {
        "Journal des Modifications.md": "changelog",
        "Registro de Cambios.md": "changelog"
    },

I think @Tyriar should review again, making compatible with regex matching and file namespaces.

1reaction
PKiefcommented, Mar 24, 2019

@Tyriar With the latest update you can also turn off the lights of the Christmas tree 😉

"material-icon-theme.saturation": 0

Preview:

icons without saturation

Or just “dim” the lights:

Saturation 1 Saturation 0.5 Saturation 0.3 Saturation 0
saturation 1 saturation 0.5 saturation 0.5 saturation 0

Happy styling and coding 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Filters to Include and Exclude Files
Filtering is a process of exclusion, and -N rules override -E rules that follow them. -N cannot add back files that are excluded...
Read more >
Make .gitignore ignore everything except a few files
This is quite hard to write by hand. To solve this hurdle, I've created a web app named git-do-not-ignore which will generate the...
Read more >
RFC 6125: Representation and Verification of Domain- ...
RFC 6125 Service Identity March 2011 Furthermore, we focus here on application service identities, not specific resources located at such services.
Read more >
W3C XML Schema Definition Language (XSD) 1.1 Part 1
Deprecation has no effect on the conformance of schemas or schema documents which use deprecated features. Since deprecated features are part of ...
Read more >
New-NetFirewallRule (NetSecurity)
The New-NetFirewallRule cmdlet creates an inbound or outbound firewall rule and adds the rule to the target computer. Some parameters are used to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found