neovim-gtk icon indicating copy to clipboard operation
neovim-gtk copied to clipboard

feat: add mimetype icons to file tree

Open theHamsta opened this issue 2 years ago • 2 comments

Try to guess mimetype for file and use it as icon. TODO: check if icon exists and set proper fallback (PS: I have no experience using GIO)

grafik

(I'm using KDE, therefore the breeze icons)

theHamsta avatar Dec 22 '22 01:12 theHamsta

It's possible to do

        let icon = gio::content_type_get_icon(&mimetype);
        gtk::IconTheme::default().has_gicon(&icon);

but I don't know how to get the icon name without querying specific icon sizes.

theHamsta avatar Dec 23 '22 13:12 theHamsta

oooh this is a neat idea, I'll try to take a look into this once I get home to see if I can help figure this out (also no problem on the experience, this is my first rust project after all! c:)

Lyude avatar Dec 25 '22 04:12 Lyude