Skip to content

Commit ae07586

Browse files
authored
Merge pull request #2805 from Anomalocaridid/refactor-lessopen
Rework `lessopen` implementation to use `execute` crate instead of `run_script`
2 parents 18ed69a + 96e4882 commit ae07586

File tree

5 files changed

+127
-168
lines changed

5 files changed

+127
-168
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
- Fix panel width when line 10000 wraps, see #2854 (@eth-p)
2424
- Fix compile issue of `time` dependency caused by standard library regression #3045 (@cyqsimon)
2525
- Fix override behavior of --plain and --paging, see issue #2731 and PR #3108 (@einfachIrgendwer0815)
26+
- Fix bugs in `$LESSOPEN` support, see #2805 (@Anomalocaridid)
2627

2728
## Other
2829

Diff for: Cargo.lock

+48-78
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Cargo.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ minimal-application = [
3333
]
3434
git = ["git2"] # Support indicating git modifications
3535
paging = ["shell-words", "grep-cli"] # Support applying a pager on the output
36-
lessopen = ["run_script", "os_str_bytes/conversions"] # Support $LESSOPEN preprocessor
36+
lessopen = ["execute"] # Support $LESSOPEN preprocessor
3737
build-assets = ["syntect/yaml-load", "syntect/plist-load", "regex", "walkdir"]
3838

3939
# You need to use one of these if you depend on bat as a library:
@@ -66,8 +66,7 @@ regex = { version = "1.10.6", optional = true }
6666
walkdir = { version = "2.5", optional = true }
6767
bytesize = { version = "1.3.0" }
6868
encoding_rs = "0.8.35"
69-
os_str_bytes = { version = "~7.0", optional = true }
70-
run_script = { version = "^0.10.1", optional = true}
69+
execute = { version = "0.2.13", optional = true }
7170
terminal-colorsaurus = "0.4"
7271

7372
[dependencies.git2]

0 commit comments

Comments
 (0)