diff --git a/Cargo.lock b/Cargo.lock index 0f6aca37c..60204a7fb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -29,13 +29,13 @@ dependencies = [ [[package]] name = "assert_cmd" -version = "1.0.7" +version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d20831bd004dda4c7c372c19cdabff369f794a95e955b3f13fe460e3e1ae95f" +checksum = "c98233c6673d8601ab23e77eb38f999c51100d46c5703b17288c57fddf3a1ffe" dependencies = [ "bstr", "doc-comment", - "predicates 2.0.0", + "predicates 2.0.2", "predicates-core", "predicates-tree", "wait-timeout", @@ -49,7 +49,7 @@ checksum = "b0ca6aa3066e6c6f0357e056a25fa95e8737f15a04f9aead0b22d0d082a39465" dependencies = [ "doc-comment", "globwalk", - "predicates 2.0.0", + "predicates 2.0.2", "predicates-core", "predicates-tree", "tempfile", @@ -145,8 +145,9 @@ dependencies = [ [[package]] name = "crossterm" -version = "0.20.0" -source = "git+https://github.com/crossterm-rs/crossterm?branch=master#c983000b510b050edef6847de53c2526a2ef6e20" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "486d44227f71a1ef39554c0dc47e44b9f4139927c75043312690c3f476d1d788" dependencies = [ "bitflags", "crossterm_winapi", @@ -274,6 +275,12 @@ dependencies = [ "walkdir", ] +[[package]] +name = "hashbrown" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" + [[package]] name = "hermit-abi" version = "0.1.19" @@ -307,11 +314,21 @@ dependencies = [ "winapi-util", ] +[[package]] +name = "indexmap" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc633605454125dec4b66843673f01c7df2b89479b32e0ed634e43a91cff62a5" +dependencies = [ + "autocfg", + "hashbrown", +] + [[package]] name = "instant" -version = "0.1.9" +version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61124eeebbd69b8190558df225adf7e4caafce0d743919e5d6b19652314ec5ec" +checksum = "bee0328b1209d157ef001c94dd85b4f8f64139adb0eac2659f4b08382b2f474d" dependencies = [ "cfg-if", ] @@ -333,9 +350,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.97" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12b8adadd720df158f4d70dfe7ccc6adb0472d7c55ca83445f6a5ab3e36f8fb6" +checksum = "a1fa8cddc8fbbee11227ef194b5317ed014b8acbf15139bd716a18ad3fe99ec5" [[package]] name = "linked-hash-map" @@ -376,6 +393,7 @@ version = "0.20.1" dependencies = [ "assert_cmd", "assert_fs", + "bitflags", "chrono", "chrono-humanize", "clap", @@ -403,9 +421,9 @@ dependencies = [ [[package]] name = "memchr" -version = "2.4.0" +version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b16bd47d9e329435e309c58469fe0791c2d0d1ba96ec0954152a5ae2b04387dc" +checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" [[package]] name = "mio" @@ -515,9 +533,9 @@ dependencies = [ [[package]] name = "predicates" -version = "2.0.0" +version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6e46ca79eb4e21e2ec14430340c71250ab69332abf85521c95d3a8bc336aa76" +checksum = "c143348f141cc87aab5b950021bac6145d0e5ae754b0591de23244cee42c9308" dependencies = [ "difflib", "itertools", @@ -532,9 +550,9 @@ checksum = "57e35a3326b75e49aa85f5dc6ec15b41108cf5aee58eabb1f274dd18b73c2451" [[package]] name = "predicates-tree" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15f553275e5721409451eb85e15fd9a860a6e5ab4496eb215987502b5f5391f2" +checksum = "d7dd0fd014130206c9352efbdc92be592751b2b9274dff685348341082c6ea3d" dependencies = [ "predicates-core", "treeline", @@ -542,9 +560,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.27" +version = "1.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0d8caf72986c1a598726adc988bb5984792ef84f5ee5aa50209145ee8077038" +checksum = "5c7ed8b8c7b886ea3ed7dde405212185f423ab44682667c8c6dd14aa1d9f6612" dependencies = [ "unicode-xid", ] @@ -600,9 +618,9 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.2.9" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ab49abadf3f9e1c4bc499e8845e152ad87d2ad2d30371841171169e9d75feee" +checksum = "8383f39639269cde97d255a32bdb68c047337295414940c68bdd30c2e13203ff" dependencies = [ "bitflags", ] @@ -666,18 +684,18 @@ checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" [[package]] name = "serde" -version = "1.0.126" +version = "1.0.129" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec7505abeacaec74ae4778d9d9328fe5a5d04253220a85c4ee022239fc996d03" +checksum = "d1f72836d2aa753853178eda473a3b9d8e4eefdaf20523b919677e6de489f8f1" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.126" +version = "1.0.129" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "963a7dbc9895aeac7ac90e74f34a5d5261828f79df35cbed41e10189d3804d43" +checksum = "e57ae87ad533d9a56427558b516d0adac283614e347abf85b0dc0cbbf0a249f3" dependencies = [ "proc-macro2", "quote", @@ -686,12 +704,12 @@ dependencies = [ [[package]] name = "serde_yaml" -version = "0.8.17" +version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15654ed4ab61726bf918a39cb8d98a2e2995b002387807fa6ba58fdf7f59bb23" +checksum = "6375dbd828ed6964c3748e4ef6d18e7a175d408ffe184bca01698d0c73f915a9" dependencies = [ "dtoa", - "linked-hash-map", + "indexmap", "serde", "yaml-rust", ] @@ -762,9 +780,9 @@ checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" [[package]] name = "syn" -version = "1.0.73" +version = "1.0.75" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f71489ff30030d2ae598524f61326b902466f72a0fb1a8564c001cc63425bcc7" +checksum = "b7f58f7e8eaa0009c5fec437aabf511bd9933e4b2d7407bd05273c01a8906ea7" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index adb3f163d..62b3a0aa9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/README.md b/README.md index f8d7146d5..aa13ece91 100644 --- a/README.md +++ b/README.md @@ -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, '+' +# Possible values: date, relative, '+' # `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 @@ -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, @@ -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 diff --git a/src/meta/permissions.rs b/src/meta/permissions.rs index 87c186a84..f3fee7072 100644 --- a/src/meta/permissions.rs +++ b/src/meta/permissions.rs @@ -94,7 +94,7 @@ impl Permissions { ]; let res = strings - .into_iter() + .iter() .map(|s| s.to_string()) .collect::>() .join(""); diff --git a/src/meta/symlink.rs b/src/meta/symlink.rs index 5d034c562..754d4e067 100644 --- a/src/meta/symlink.rs +++ b/src/meta/symlink.rs @@ -61,7 +61,7 @@ impl SymLink { ]; let res = strings - .into_iter() + .iter() .map(|s| s.to_string()) .collect::>() .join("");