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.

Change icon of specific type of file inside a specific directory

See original GitHub issue

I tried this

.directory.entry > .header > .name[data-path="FOLDER_PATH_HERE"]::before{
    content: "\f06a";
    font-family: "Octicons Regular";
}

and this

.directory > .header > .icon{
	&[data-path$=".atom/packages"]:before{
		font-family: "Octicons Regular";
		content: "\f0c4";
	}
}

So far nothing worked. I would like to change the icon of .txt or other type of files inside a specific path.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Wanty5883commented, Feb 11, 2020

Oh… Dumb question sorry.

Now it works perfectly. Just what I had in mind and needed. Thanks a lot for your help, surprisingly fast !

0reactions
Alhadiscommented, Feb 11, 2020

Good to hear! 👍 Let me know if you run into any other issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change File and Folder Icons in Windows 11/10
From the WinX Menu, open Windows 11 Settings · Click on Personalization settings · Select Themes · Scroll down a bit till you...
Read more >
How to Change Icons for Specific File Formats in Windows 11 ...
Open Types or Default Programs Editor to change a file format's icon. Click Select Icon file in Types or Browse in Default Programs...
Read more >
Change the file icon of specified file - windows - Super User
File type icons are applied per-filetype (not per-file). Only way you can set a different icon for a specific file is by writing...
Read more >
How to Change the Icon for a File Type in Windows
To launch the icon picker dialog, right-click on a folder in your system, click Properties. Click the Customize tab, and click the “Change...
Read more >
Change icons for files or folders on Mac - Apple Support
In the Finder on your Mac, change the icon for any file or folder using your own pictures, icons from the web, or...
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