diff --git a/Cargo.lock b/Cargo.lock index c3b4a944..6cbcd425 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -159,7 +159,7 @@ dependencies = [ "thiserror 2.0.11", "toml", "unicode-segmentation", - "unicode-width 0.1.14", + "unicode-width", "wait-timeout", "walkdir", "wild", @@ -311,7 +311,7 @@ dependencies = [ "encode_unicode", "libc", "once_cell", - "unicode-width 0.2.0", + "unicode-width", "windows-sys 0.59.0", ] @@ -1713,12 +1713,6 @@ version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" -[[package]] -name = "unicode-width" -version = "0.1.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" - [[package]] name = "unicode-width" version = "0.2.0" diff --git a/Cargo.toml b/Cargo.toml index ad9f10db..bc5ff954 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,7 +52,7 @@ thiserror = "2.0" wild = { version = "2.2", optional = true } content_inspector = "0.2.4" shell-words = { version = "1.1.0", optional = true } -unicode-width = "0.1.13" +unicode-width = "0.2.0" globset = "0.4" serde = "1.0" serde_derive = "1.0" diff --git a/README.md b/README.md index 6053928f..03809435 100644 --- a/README.md +++ b/README.md @@ -257,7 +257,8 @@ abbr -a --position anywhere -- -h '-h | bat -plhelp' This way, you can keep on using `cp --help`, but get colorized help pages. -Be aware that in some cases, `-h` may not be a shorthand of `--help` (for example with `ls`). +Be aware that in some cases, `-h` may not be a shorthand of `--help` (for example with `ls`). In cases where you need to use `-h` +as a command argument you can prepend `\` to the arguement (eg. `ls \-h`) to escape the aliasing defined above. Please report any issues with the help syntax in [this repository](https://github.com/victor-gp/cmd-help-sublime-syntax).