1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-10-31 07:04:04 +00:00

Add $LESSOPEN and $LESSCLOSE support (#2444)

This commit is contained in:
Anomalocaridid
2023-09-02 06:48:26 +00:00
committed by GitHub
parent 3abc0c0fc4
commit e32ad0b048
16 changed files with 748 additions and 4 deletions

View File

@@ -21,6 +21,7 @@ application = [
"build-assets",
"git",
"minimal-application",
"lessopen",
]
# Mainly for developers that want to iterate quickly
# Be aware that the included features might change in the future
@@ -33,6 +34,7 @@ minimal-application = [
]
git = ["git2"] # Support indicating git modifications
paging = ["shell-words", "grep-cli"] # Support applying a pager on the output
lessopen = ["run_script", "os_str_bytes"] # Support $LESSOPEN preprocessor
build-assets = ["syntect/yaml-load", "syntect/plist-load", "regex", "walkdir"]
# You need to use one of these if you depend on bat as a library:
@@ -64,6 +66,8 @@ regex = { version = "1.8.3", optional = true }
walkdir = { version = "2.3", optional = true }
bytesize = { version = "1.2.0" }
encoding_rs = "0.8.32"
os_str_bytes = { version = "~6.4", optional = true }
run_script = { version = "^0.10.0", optional = true}
[dependencies.git2]
version = "0.18"