-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The options --map-syntax and --ignored-suffix cannot work together. #2093
Comments
Thank you for this bug report. I would hope that this is easy to fix. |
Hi there 😃 I'd like to take this one, please |
Hi, sounds great! Please let us know if you have any questions or need any help :) |
HI @keith-hall and thanks again to let me take it :) I'm sorry, It was a pretty tough week at my job and I only had the time to check the issue this morning. I'm gonna work on it today :) As it is my first contribution, any advices to solve this one? |
Shouldn't this issue be closed with #2260 ? |
Yep, looks like it should. Fix released in bat v0.22.0. |
Describe the bug you encountered:
The options
--map-syntax
and--ignored-suffix
cannot work together.How to reproduce it:
Prepare a file
foo.demo
in YAML syntax:Use
bat --map-syntax "*.demo:YAML" foo.demo
can print it with YAML syntax highlighting:bat foo.demo \ --map-syntax "*.demo:YAML"
Copy
foo.demo
tofoo.demo.example
,and use
bat --map-syntax "*.demo:YAML" --ignored-suffix ".example" foo.demo.example
CANNOT print it with YAML syntax highlighting:BUT it works well If I only use
--ignored-suffix ".example"
with built-in syntax mapping:What did you expect to happen instead?
The options
--map-syntax
and--ignored-suffix
can works togerher.How did you install
bat
?Homebrew:
brew install --formula "bat"
bat version and environment
Software version
bat 0.20.0
Operating system
macOS 12.2 (Darwin 21.3.0)
Command-line
Environment variables
Config file
Could not read contents of '~/.config/bat/config': No such file or directory (os error 2).
Compile time information
Less version
thanks for this awesome tool.
The text was updated successfully, but these errors were encountered: