mirror of
https://github.com/lsd-rs/lsd
synced 2024-11-10 06:14:19 +00:00
📝 🔨 fix typos and update description for icon theme
Signed-off-by: zwPapEr <zw.paper@gmail.com>
This commit is contained in:
parent
c41ba382e7
commit
38fc385129
1 changed files with 31 additions and 3 deletions
34
README.md
34
README.md
|
@ -246,7 +246,7 @@ The valid theme configurations are:
|
||||||
when configured with the `theme-file-name` which is a `yaml` file,
|
when configured with the `theme-file-name` which is a `yaml` file,
|
||||||
`lsd` will look up the theme file in the following way:
|
`lsd` will look up the theme file in the following way:
|
||||||
|
|
||||||
- relative name: check the XDG Base Directory, e.g. ~/.config/lsd/<theme-file-name>.yaml
|
- relative name: check the XDG Base Directory, e.g. ~/.config/lsd/themes/<theme-file-name>.yaml
|
||||||
- absolute name: use the file path and name to find theme file
|
- absolute name: use the file path and name to find theme file
|
||||||
|
|
||||||
Check [Color Theme file content](#color-theme-file-content) for details.
|
Check [Color Theme file content](#color-theme-file-content) for details.
|
||||||
|
@ -318,7 +318,7 @@ lsd support 3 kinds of icon configuration:
|
||||||
|
|
||||||
The default icon theme scheme shipped with `lsd` can be check in [icon theme source code](src/theme/icon.rs), we will load the default theme, and overwrite it with user defined parts, here is a example for icon theme.
|
The default icon theme scheme shipped with `lsd` can be check in [icon theme source code](src/theme/icon.rs), we will load the default theme, and overwrite it with user defined parts, here is a example for icon theme.
|
||||||
|
|
||||||
lsd icon theme support both nerd font and Unicode in the same time, you can use any one to config the theme, or even combine them.
|
lsd icon theme support both nerd font and Unicode in the same time, you can use any one to config the theme, this is the default but you can customize this to use glyphs from nerd-font or Unicode emojis in the same time.
|
||||||
|
|
||||||
nerd font:
|
nerd font:
|
||||||
|
|
||||||
|
@ -358,8 +358,36 @@ filetype:
|
||||||
pipe: 📩
|
pipe: 📩
|
||||||
```
|
```
|
||||||
|
|
||||||
|
mixed:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
name:
|
||||||
|
.trash:
|
||||||
|
.cargo:
|
||||||
|
.emacs.d:
|
||||||
|
a.out:
|
||||||
|
extension:
|
||||||
|
go:
|
||||||
|
hs:
|
||||||
|
rs: 🦀
|
||||||
|
filetype:
|
||||||
|
dir: 📂
|
||||||
|
file: 📄
|
||||||
|
pipe: 📩
|
||||||
|
dir:
|
||||||
|
file:
|
||||||
|
pipe:
|
||||||
|
socket:
|
||||||
|
executable:
|
||||||
|
symlink-dir:
|
||||||
|
symlink-file:
|
||||||
|
device-char:
|
||||||
|
device-block: ﰩ
|
||||||
|
special:
|
||||||
|
```
|
||||||
|
|
||||||
When creating a theme for `lsd`, you can specify any part of the default theme,
|
When creating a theme for `lsd`, you can specify any part of the default theme,
|
||||||
and then change its colors, the items missed would fallback to use the default colors.
|
and then change its icons, the items missed would fallback to use the default icons.
|
||||||
|
|
||||||
## External Configurations
|
## External Configurations
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue