mirror of
https://github.com/sxyazi/yazi.git
synced 2024-12-18 06:11:31 +03:00
fix: correct the glob pattern for the icons to fit the new matching algorithm (#959)
This commit is contained in:
parent
42a0fcd5cf
commit
681612f976
@ -304,36 +304,36 @@ rules = [
|
||||
{ name = "*.pkg", text = "", fg = "#9F0500" },
|
||||
|
||||
# Dotfiles
|
||||
{ name = ".DS_Store" , text = "", fg = "#41535b" },
|
||||
{ name = ".bashprofile" , text = "", fg = "#89e051" },
|
||||
{ name = ".bashrc" , text = "", fg = "#89e051" },
|
||||
{ name = ".gitattributes", text = "", fg = "#41535b" },
|
||||
{ name = ".gitignore" , text = "", fg = "#41535b" },
|
||||
{ name = ".gitmodules" , text = "", fg = "#41535b" },
|
||||
{ name = ".vimrc" , text = "", fg = "#019833" },
|
||||
{ name = ".zprofile" , text = "", fg = "#89e051" },
|
||||
{ name = ".zshenv" , text = "", fg = "#89e051" },
|
||||
{ name = ".zshrc" , text = "", fg = "#89e051" },
|
||||
{ name = "*/.DS_Store" , text = "", fg = "#41535b" },
|
||||
{ name = "*/.bash_profile" , text = "", fg = "#89e051" },
|
||||
{ name = "*/.bashrc" , text = "", fg = "#89e051" },
|
||||
{ name = "*/.gitattributes", text = "", fg = "#41535b" },
|
||||
{ name = "*/.gitignore" , text = "", fg = "#41535b" },
|
||||
{ name = "*/.gitmodules" , text = "", fg = "#41535b" },
|
||||
{ name = "*/.vimrc" , text = "", fg = "#019833" },
|
||||
{ name = "*/.zprofile" , text = "", fg = "#89e051" },
|
||||
{ name = "*/.zshenv" , text = "", fg = "#89e051" },
|
||||
{ name = "*/.zshrc" , text = "", fg = "#89e051" },
|
||||
|
||||
# Named files
|
||||
{ name = "COPYING" , text = "", fg = "#cbcb41" },
|
||||
{ name = "Containerfile", text = "", fg = "#458ee6" },
|
||||
{ name = "Dockerfile" , text = "", fg = "#458ee6" },
|
||||
{ name = "LICENSE" , text = "", fg = "#d0bf41" },
|
||||
{ name = "*/COPYING" , text = "", fg = "#cbcb41" },
|
||||
{ name = "*/Containerfile", text = "", fg = "#458ee6" },
|
||||
{ name = "*/Dockerfile" , text = "", fg = "#458ee6" },
|
||||
{ name = "*/LICENSE" , text = "", fg = "#d0bf41" },
|
||||
|
||||
# Directories
|
||||
{ name = ".config/" , text = "" },
|
||||
{ name = ".git/" , text = "" },
|
||||
{ name = "Desktop/" , text = "" },
|
||||
{ name = "Development/", text = "" },
|
||||
{ name = "Documents/" , text = "" },
|
||||
{ name = "Downloads/" , text = "" },
|
||||
{ name = "Library/" , text = "" },
|
||||
{ name = "Movies/" , text = "" },
|
||||
{ name = "Music/" , text = "" },
|
||||
{ name = "Pictures/" , text = "" },
|
||||
{ name = "Public/" , text = "" },
|
||||
{ name = "Videos/" , text = "" },
|
||||
{ name = "*/.config/" , text = "" },
|
||||
{ name = "*/.git/" , text = "" },
|
||||
{ name = "*/Desktop/" , text = "" },
|
||||
{ name = "*/Development/", text = "" },
|
||||
{ name = "*/Documents/" , text = "" },
|
||||
{ name = "*/Downloads/" , text = "" },
|
||||
{ name = "*/Library/" , text = "" },
|
||||
{ name = "*/Movies/" , text = "" },
|
||||
{ name = "*/Music/" , text = "" },
|
||||
{ name = "*/Pictures/" , text = "" },
|
||||
{ name = "*/Public/" , text = "" },
|
||||
{ name = "*/Videos/" , text = "" },
|
||||
|
||||
# Default
|
||||
{ name = "*" , text = "" },
|
||||
|
@ -36,7 +36,7 @@ impl TryFrom<&str> for Pattern {
|
||||
|
||||
let inner = GlobBuilder::new(b)
|
||||
.case_insensitive(a.len() == s.len())
|
||||
.literal_separator(b.contains('/'))
|
||||
.literal_separator(false)
|
||||
.backslash_escape(false)
|
||||
.empty_alternates(false)
|
||||
.build()?
|
||||
|
Loading…
Reference in New Issue
Block a user