vifm/vifm

set classify ignores name matching for the dirs

halturin opened this issue · 1 comments

According to https://vifm.info/vimdoc.shtml#vifm-%27classify%27

"file name patterns have priority over type patterns",

here is my config:
image

I'm expecting to see a custom icon for the .git directory. seems the second line is ignored.
but works for a file with the name .git :)

basically, my idea is to use different icons for the specific set of directories.

I think it's not stated explicitly, but the matching in 'classify' is done the same as in other places (search, filters, :file[x]type, :fileviewer): directory names get a trailing slash to be able to differentiate between files and directories. So you want to do something like this (also handles bare repositories):

    set classify+=' ::.git/,,*.git/::/'