Skip to content

Commit

Permalink
fix: correct the glob pattern for the icons to fit the new matching a…
Browse files Browse the repository at this point in the history
…lgorithm (#959)
  • Loading branch information
sxyazi authored Apr 26, 2024
1 parent 42a0fcd commit 681612f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
52 changes: 26 additions & 26 deletions yazi-config/preset/theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "" },
Expand Down
2 changes: 1 addition & 1 deletion yazi-config/src/pattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()?
Expand Down

0 comments on commit 681612f

Please sign in to comment.