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.

[suggestion] Inheritance icons & default icon for file

See original GitHub issue

It 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 :

image 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:closed
  • Created 2 years ago
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
M3NIXcommented, Nov 29, 2021

+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.

0reactions
FlorianWoelkicommented, Dec 21, 2021

Added with release 1.0.4. Thanks again @Mara-Li

Read more comments on GitHub >

github_iconTop 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 >

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