vifm: Fix favicon slash display

Slashes should only be displayed for directory-like objects. They were
displayed for all sorts of files. This commit fixes that.
This commit is contained in:
Marty Oehme 2024-01-11 18:01:03 +01:00
parent ba56e6f546
commit 8ef81d39ef
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -25,64 +25,65 @@ set classify+=' :dir:/, :exe:, :reg:, :link:,? :?:, ::../::
" Specific files " Specific files
set classify+=' ::.Xdefaults,,.Xresources,,.bashprofile,,.bash_profile,,.bashrc,,.dmrc,,.d_store,,.fasd,,.gitconfig,,.gitignore,,.jack-settings,,.mime.types,,.nvidia-settings-rc,,.pam_environment,,.profile,,.recently-used,,.selected_editor,,.xinitpurc,,.zprofile,,.yarnc,,.snclirc,,.tmux.conf,,.urlview,,.config,,.ini,,.user-dirs.dirs,,.mimeapps.list,,.offlineimaprc,,.msmtprc,,.Xauthority,,config::/, set classify+=' ::.Xdefaults,,.Xresources,,.bashprofile,,.bash_profile,,.bashrc,,.dmrc,,.d_store,,.fasd,,.gitconfig,,.gitignore,,.jack-settings,,.mime.types,,.nvidia-settings-rc,,.pam_environment,,.profile,,.recently-used,,.selected_editor,,.xinitpurc,,.zprofile,,.yarnc,,.snclirc,,.tmux.conf,,.urlview,,.config,,.ini,,.user-dirs.dirs,,.mimeapps.list,,.offlineimaprc,,.msmtprc,,.Xauthority,,config::/,
\  ::favicon.*,,README,,readme::/, \  ::favicon.*,,README,,readme::,
\  ::.vim,,.vimrc,,.gvimrc,,.vifm::/, \  ::.vim,,.vimrc,,.gvimrc,,.vifm::,
\  ::gruntfile.coffee,,gruntfile.js,,gruntfile.ls::/, \  ::gruntfile.coffee,,gruntfile.js,,gruntfile.ls::,
\  ::gulpfile.coffee,,gulpfile.js,,gulpfile.ls::/, \  ::gulpfile.coffee,,gulpfile.js,,gulpfile.ls::,
\  ::ledger,,*.beancount::/, \  ::ledger,,*.beancount::,
\  ::license,,copyright,,copying,,LICENSE,,COPYRIGHT,,COPYING::/, \  ::license,,copyright,,copying,,LICENSE,,COPYRIGHT,,COPYING::,
\  ::react.jsx::' \  ::react.jsx::'
" File extensions " File extensions
set classify+='λ ::*.ml,,*.mli::/, set classify+='λ ::*.ml,,*.mli::,
\  ::*.styl::/, \  ::*.styl::,
\  ::*.scss::/, \  ::*.scss::,
\  ::*.py,,*.pyc,,*.pyd,,*.pyo::/, \  ::*.py,,*.pyc,,*.pyd,,*.pyo::,
\  ::*.php::/, \  ::*.php::,
\  ::*.markdown,,*.md::/, \  ::*.markdown,,*.md::,
\  ::*.json::/, \  ::*.json::,
\  ::*.js::/, \  ::*.js::,
\  ::*.bmp,,*.gif,,*.ico,,*.jpeg,,*.jpg,,*.png,,*.svg,,*.svgz,,*.tga,,*.tiff,,*.xmb,,*.xcf,,*.xpm,,*.xspf,,*.xwd,,*.cr2,,*.dng,,*.3fr,,*.ari,,*.arw,,*.bay,,*.crw,,*.cr3,,*.cap,,*.data,,*.dcs,,*.dcr,,*.drf,,*.eip,,*.erf,,*.fff,,*.gpr,,*.iiq,,*.k25,,*.kdc,,*.mdc,,*.mef,,*.mos,,*.mrw,,*.obm,,*.orf,,*.pef,,*.ptx,,*.pxn,,*.r3d,,*.raf,,*.raw,,*.rwl,,*.rw2,,*.rwz,,*.sr2,,*.srf,,*.srw,,*.tif,,*.x3f,,*.webp,,*.avif,,*.jxl::/, \  ::*.bmp,,*.gif,,*.ico,,*.jpeg,,*.jpg,,*.png,,*.svg,,*.svgz,,*.tga,,*.tiff,,*.xmb,,*.xcf,,*.xpm,,*.xspf,,*.xwd,,*.cr2,,*.dng,,*.3fr,,*.ari,,*.arw,,*.bay,,*.crw,,*.cr3,,*.cap,,*.data,,*.dcs,,*.dcr,,*.drf,,*.eip,,*.erf,,*.fff,,*.gpr,,*.iiq,,*.k25,,*.kdc,,*.mdc,,*.mef,,*.mos,,*.mrw,,*.obm,,*.orf,,*.pef,,*.ptx,,*.pxn,,*.r3d,,*.raf,,*.raw,,*.rwl,,*.rw2,,*.rwz,,*.sr2,,*.srf,,*.srw,,*.tif,,*.x3f,,*.webp,,*.avif,,*.jxl::,
\  ::*.ejs,,*.htm,,*.html,,*.slim,,*.xml::/, \  ::*.ejs,,*.htm,,*.html,,*.slim,,*.xml::,
\  ::*.mustasche::/, \  ::*.mustasche::,
\  ::*.css,,*.less,,*.bat,,*.conf,,*.ini,,*.rc,,*.yml,,*.cfg::/, \  ::*.css,,*.less,,*.bat,,*.conf,,*.ini,,*.rc,,*.yml,,*.cfg::,
\  ::*.rss::/, \  ::*.rss::,
\  ::*.coffee::/, \  ::*.coffee::,
\  ::*.twig::/, \  ::*.twig::,
\  ::*.c++,,*.cpp,,*.cxx,,*.h::/, \  ::*.c++,,*.cpp,,*.cxx,,*.h::,
\  ::*.cc,,*.c::/, \  ::*.cc,,*.c::,
\  ::*.hs,,*.lhs::/, \  ::*.hs,,*.lhs::,
\  ::*.lua::/, \  ::*.lua::,
\  ::*.jl::/, \  ::*.jl::,
\  ::*.go::/, \  ::*.go::,
\  ::*.ts::/, \  ::*.ts::,
\  ::*.db,,*.dump,,*.sql::/, \  ::*.db,,*.dump,,*.sql::,
\  ::*.sln,,*.suo::/, \  ::*.sln,,*.suo::,
\  ::*.exe::/, \  ::*.exe::,
\  ::*.diff,,*.sum,,*.md5,,*.sha512::/, \  ::*.diff,,*.sum,,*.md5,,*.sha512::,
\  ::*.scala::/, \  ::*.scala::,
\  ::*.java,,*.jar::/, \  ::*.java,,*.jar::,
\  ::*.xul::/, \  ::*.xul::,
\  ::*.clj,,*.cljc::/, \  ::*.clj,,*.cljc::,
\  ::*.pl,,*.pm,,*.t::/, \  ::*.pl,,*.pm,,*.t::,
\  ::*.cljs,,*.edn::/, \  ::*.cljs,,*.edn::,
\  ::*.rb::/, \  ::*.rb::,
\  ::*.fish,,*.sh,,*.bash::/, \  ::*.fish,,*.sh,,*.bash::,
\  ::*.dart::/, \  ::*.dart::,
\  ::*.f#,,*.fs,,*.fsi,,*.fsscript,,*.fsx::/, \  ::*.f#,,*.fs,,*.fsi,,*.fsscript,,*.fsx::,
\  ::*.rlib,,*.rs::/, \  ::*.rlib,,*.rs::,
\  ::*.d::/, \  ::*.d::,
\  ::*.erl,,*.hrl::/, \  ::*.erl,,*.hrl::,
\  ::*.ai::/, \  ::*.ai::,
\  ::*.psb,,*.psd::/, \  ::*.psb,,*.psd::,
\  ::*.jsx::/, \  ::*.jsx::,
\  ::*.aac,,*.anx,,*.asf,,*.au,,*.axa,,*.flac,,*.m2a,,*.m4a,,*.mid,,*.midi,,*.mp3,,*.mpc,,*.oga,,*.ogg,,*.ogx,,*.ra,,*.ram,,*.rm,,*.spx,,*.wav,,*.wma,,*.ac3::/, \  ::*.aac,,*.anx,,*.asf,,*.au,,*.axa,,*.flac,,*.m2a,,*.m4a,,*.mid,,*.midi,,*.mp3,,*.mpc,,*.oga,,*.ogg,,*.ogx,,*.ra,,*.ram,,*.rm,,*.spx,,*.wav,,*.wma,,*.ac3::,
\  ::*.avi,,*.flv,,*.mkv,,*.mov,,*.mp4,,*.mpeg,,*.mpg,,*.webm,,*.av1::/, \ 󰗋 ::*.aax,,*.m4b::,
\  ::*.epub,,*.pdf,,*.fb2,,*.djvu::/, \  ::*.avi,,*.flv,,*.mkv,,*.mov,,*.mp4,,*.mpeg,,*.mpg,,*.webm,,*.av1::,
\  ::*.7z,,*.apk,,*.bz2,,*.cab,,*.cpio,,*.deb,,*.gem,,*.gz,,*.gzip,,*.lh,,*.lzh,,*.lzma,,*.rar,,*.rpm,,*.tar,,*.tgz,,*.xz,,*.zip,,*.zst::/, \  ::*.epub,,*.pdf,,*.fb2,,*.djvu::,
\  ::*.cbr,,*.cbz::/, \  ::*.7z,,*.apk,,*.bz2,,*.cab,,*.cpio,,*.deb,,*.gem,,*.gz,,*.gzip,,*.lh,,*.lzh,,*.lzma,,*.rar,,*.rpm,,*.tar,,*.tgz,,*.xz,,*.zip,,*.zst::,
\  ::*.log::/, \  ::*.cbr,,*.cbz::,
\  ::*.doc,,*.docx,,*.adoc::/, \  ::*.log::,
\  ::*.xls,,*.xlsmx::/, \  ::*.doc,,*.docx,,*.adoc::,
\  ::*.pptx,,*.ppt::/, \  ::*.xls,,*.xlsmx::,
\  ::*.pptx,,*.ppt::,
\  ::*.sqlite,,*.db::' \  ::*.sqlite,,*.db::'