Skip to content

Commit

Permalink
build: ⬆️ update dependency to deserialize color
Browse files Browse the repository at this point in the history
Signed-off-by: zwPapEr <[email protected]>
  • Loading branch information
zwpaper committed Aug 24, 2021
1 parent 88bf85e commit 2cab165
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 35 deletions.
76 changes: 47 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ clap = "2.33.*"
version_check = "0.9.*"

[dependencies]
crossterm = { git = "https://github.com/crossterm-rs/crossterm", branch = "master", features = ["serde"]}
crossterm = { version = "0.21.0", features = ["serde"]}
bitflags = "=1.2.1"
dirs = "3.0.*"
libc = "0.2.*"
human-sort = "0.2.2"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ color:
# This specifies the date format for the date column. The freeform format
# accepts an strftime like string.
# When "classic" is set, this is set to "date".
# Possible values: date, relative, '+<date_format>'
# Possible values: date, relative, '+<date_format>'
# `date_format` will be a `strftime` formatted value. e.g. `date: '+%d %b %y %X'` will give you a date like this: 17 Jun 21 20:14:55
date: date

Expand Down Expand Up @@ -318,8 +318,6 @@ symlink-arrow: ⇒
Theme can be configured in the [configuration file](#configuration)(color.theme),
The valid theme configurations are:
- `default`: the default color scheme shipped in `lsd`
- `no-color`: classic mode, there will be just black and white.
- `no-lscolors`: do not check the `LSCOLORS` env
- theme-file-name(yaml): use the theme file to specify colors

when configured with the `theme-file-name` which is a `yaml` file,
Expand All @@ -337,6 +335,8 @@ for the supported colors.

Color table: https://upload.wikimedia.org/wikipedia/commons/1/15/Xterm_256color_chart.svg

Please notice that color value would ignore case, both lowercase and UPPERCASE is supported.

This is the default theme scheme shipped with `lsd`.

```yaml
Expand Down
2 changes: 1 addition & 1 deletion src/meta/permissions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl Permissions {
];

let res = strings
.into_iter()
.iter()
.map(|s| s.to_string())
.collect::<Vec<String>>()
.join("");
Expand Down
2 changes: 1 addition & 1 deletion src/meta/symlink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl SymLink {
];

let res = strings
.into_iter()
.iter()
.map(|s| s.to_string())
.collect::<Vec<String>>()
.join("");
Expand Down

0 comments on commit 2cab165

Please sign in to comment.