mirror of
https://github.com/lsd-rs/lsd
synced 2024-11-13 23:57:08 +00:00
Bump lscolors to 0.9.0
This commit is contained in:
parent
5f8a24e2b8
commit
5972f6c99a
5 changed files with 20 additions and 10 deletions
2
.github/workflows/CICD.yml
vendored
2
.github/workflows/CICD.yml
vendored
|
@ -6,7 +6,7 @@ env:
|
|||
PROJECT_NAME: lsd
|
||||
PROJECT_DESC: "An ls command with a lot of pretty colors."
|
||||
PROJECT_AUTH: "Peltoche <peltoche@halium.fr>"
|
||||
RUST_MIN_SRV: "1.43.1"
|
||||
RUST_MIN_SRV: "1.56.0"
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
|
|
|
@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
## [Unreleased] - ReleaseDate
|
||||
### Added
|
||||
- Add `--group-directories-first` as an alias for `--group-dirs=first` to improve compatibility with `coreutils/ls`
|
||||
### Fixed
|
||||
- Support non-bold bright colors [#248](https://github.com/Peltoche/lsd/issues/248) from [meain](https://github.com/meain)
|
||||
|
||||
## [0.21.0] - 2022-01-16
|
||||
### Added
|
||||
|
|
12
Cargo.lock
generated
12
Cargo.lock
generated
|
@ -364,9 +364,9 @@ checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3"
|
|||
|
||||
[[package]]
|
||||
name = "lock_api"
|
||||
version = "0.4.4"
|
||||
version = "0.4.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0382880606dff6d15c9476c416d18690b72742aa7b605bb6dd6ec9030fbf07eb"
|
||||
checksum = "88943dd7ef4a2e5a4bfa2753aaab3013e34ce2533d1996fb18ef591e315e2b3b"
|
||||
dependencies = [
|
||||
"scopeguard",
|
||||
]
|
||||
|
@ -382,9 +382,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "lscolors"
|
||||
version = "0.7.1"
|
||||
version = "0.9.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d24b894c45c9da468621cdd615a5a79ee5e5523dd4f75c76ebc03d458940c16e"
|
||||
checksum = "4e9323b3525d4efad2dead1837a105e313253bfdbad1d470994038eededa4d62"
|
||||
dependencies = [
|
||||
"ansi_term 0.12.1",
|
||||
]
|
||||
|
@ -740,9 +740,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "signal-hook"
|
||||
version = "0.3.9"
|
||||
version = "0.3.13"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "470c5a6397076fae0094aaf06a08e6ba6f37acb77d3b1b91ea92b4d6c8650c39"
|
||||
checksum = "647c97df271007dcea485bb74ffdb57f2e683f1306c854f468a0c244badabf2d"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"signal-hook-registry",
|
||||
|
|
|
@ -9,7 +9,7 @@ name = "lsd"
|
|||
readme = "./README.md"
|
||||
repository = "https://github.com/Peltoche/lsd"
|
||||
version = "0.21.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[[bin]]
|
||||
name = "lsd"
|
||||
|
@ -30,7 +30,7 @@ terminal_size = "0.1.*"
|
|||
chrono = "0.4.*"
|
||||
chrono-humanize = "0.1.*"
|
||||
unicode-width = "0.1.*"
|
||||
lscolors = "0.7"
|
||||
lscolors = "0.9.0"
|
||||
wild = "2.0.*"
|
||||
globset = "0.4.*"
|
||||
xdg = "2.1.*"
|
||||
|
|
10
src/color.rs
10
src/color.rs
|
@ -249,7 +249,15 @@ fn to_content_style(ls: &lscolors::Style) -> ContentStyle {
|
|||
lscolors::style::Color::Blue => Color::DarkBlue,
|
||||
lscolors::style::Color::Magenta => Color::DarkMagenta,
|
||||
lscolors::style::Color::Cyan => Color::DarkCyan,
|
||||
lscolors::style::Color::White => Color::White,
|
||||
lscolors::style::Color::White => Color::Grey,
|
||||
lscolors::style::Color::BrightBlack => Color::DarkGrey,
|
||||
lscolors::style::Color::BrightRed => Color::Red,
|
||||
lscolors::style::Color::BrightGreen => Color::Green,
|
||||
lscolors::style::Color::BrightYellow => Color::Yellow,
|
||||
lscolors::style::Color::BrightBlue => Color::Blue,
|
||||
lscolors::style::Color::BrightMagenta => Color::Magenta,
|
||||
lscolors::style::Color::BrightCyan => Color::Cyan,
|
||||
lscolors::style::Color::BrightWhite => Color::White,
|
||||
};
|
||||
let mut style = ContentStyle {
|
||||
foreground_color: ls.foreground.as_ref().map(to_crossterm_color),
|
||||
|
|
Loading…
Reference in a new issue