Skip to content

Commit

Permalink
docs: add new is property
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Jan 13, 2024
1 parent f9b4145 commit 40d2c19
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/configuration/theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ rules = [
{ mime = "video/*", fg = "yellow" },
{ mime = "audio/*", fg = "yellow" },

# Orphan symbolic links
{ name = "*", is = "orphan", fg = "red" },

# ...

# Fallback
Expand All @@ -180,6 +183,16 @@ Each rule supports complete [Style properties](#Types). There are two special ru
- `name = "*"` matches all files.
- `name = "*/"` matches all directories.

You can restrict the specific type of files through `is`, noting that it must be used with either `name` or `mime`. It accepts the following values:

- `block`: Block device
- `exec`: Executable
- `fifo`: FIFO
- `link`: Symbolic link
- `orphan`: Orphan symbolic link
- `sock`: Socket
- `sticky`: File with sticky bit set

## [icons]

Display different icons based on file name rules, noting that the `/` after the name signifies that it must be a directory.
Expand Down

0 comments on commit 40d2c19

Please sign in to comment.