mirror of
https://github.com/sharkdp/bat
synced 2026-07-28 17:51:44 +00:00
Add $LESSOPEN and $LESSCLOSE support (#2444)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user