[suggestion] Inheritance icons & default icon for file
See original GitHub issueIt will be good to have an option to inherit icons in file and folder.
Also, to add a default icon for file, icons will be removed when changed.
Image example :
Note : By default, my note have a default icons (added with css for the moment), but I add a specific icon for “Relation notes”
For the moment, I do this :
.nav-file-title:not(.nav-file-title.is-unsupported) .nav-file-title-content:before {
content: "\ea37";
font-family: boxicons;
font-size: calc(var(--size) + 3%);
margin-right: 5px;
margin-left: 0px;
vertical-align: -2px;
}
.nav-file-title-content[data-link-data-href="file_name"]::before {
content: '' !important;
margin-right: 0 !important;
}
I think, for theme compatibility, add a class/id in folder-file modified by the plugin, so you can work with this class to remove the content.
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (13 by maintainers)
Top Results From Across the Web
How do I change the icon for a particular file type? - Ask Ubuntu
Here is a set of instructions that should get you a custom icon for hwp files. Open a terminal : Check the MIME...
Read more >How to Assign a Custom Icon to a File Type - Win32 apps
Step 1: Create a subkey named DefaultIcon in one of the following two locations: For a file-type assignment, HKEY_CLASSES_ROOT\.extension; For ...
Read more >c# - Change default icon - Stack Overflow
With a project selected in Solution Explorer, on the Project menu click Properties. Select the Application pane. Select an icon (.ico) file from...
Read more >Question - ScriptableObject icons with inheritance - Unity Forum
Icons aren't inherited, which is a bummer. IIRC there is some undocumented secret way to do this by using the Gizmos folder and...
Read more >[Variants] How to keep the icon color override while changing ...
I'm building a big library and have a popular problem with icon color override ... I edited your file and icons now inherit...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1 default icon for files and folders. A default icon for specifically named folders (e.g. “attachements”) would be nice aswell, so that every “attachments” folder that gets created has the same icon.
Added with release 1.0.4. Thanks again @Mara-Li