1
0
mirror of https://github.com/sharkdp/bat synced 2026-06-09 10:03:18 +00:00

634 Commits

Author SHA1 Message Date
Keith Hall 915eb55779 Merge branch 'master' into syslog_error_highlighting_fix 2025-02-09 22:20:14 +02:00
Keith Hall 512bfde7ce Correctly handle CSV files with a single separator throughout
better auto-detection of CSV delimiter
- files with a tsv extension are automatically detected as tab delimited
- other files parsed as CSV go through the following steps:
  - if the first line contains at least 3 of the same separator, it uses that separator as a delimiter
  - if the first line contains only one supported separator character, it uses that separator as a delimiter
  - otherwise it falls back to treating all supported delimiters as the delimiter

 supported delimiters, in precedence order:
 - comma `,`
 - semi-colon `;`
 - tab `\t`
 - pipe `|`
2025-02-09 20:37:53 +02:00
Keith Hall 27ba45ded7 patch Monokai Extended theme for better Syslog error highlighting 2025-02-09 20:32:48 +02:00
Keith Hall c0898dedb1 fix meta scope ordering to come before constant.numeric scope for times 2025-02-09 20:31:31 +02:00
Keith Hall b82b920420 attempt to fix syslog error highlighting 2025-02-09 20:31:31 +02:00
Víctor González Prieto 0ed527f0d1 Replace spaces in git submodule paths
To mitigate a bug in the GitHub API that broke the Dependabot action
that updates submodules. See sharkdp/bat#3198.
2025-02-03 22:01:33 +01:00
Denis Buzdalov d6cb3ba747 [ new ] Add support for Idris 2 programming language 2025-01-27 23:47:20 +03:00
Keith Hall 5cfd22ee8b Bump version to 0.25.0 2025-01-07 20:44:21 +02:00
Keith Hall 0d2afe79af Improve base16 themes for better Man page syntax highlighting 2025-01-03 08:31:05 +02:00
Keith Hall 5a12f187fa Patch 1337 theme for better Man page syntax highlighting 2025-01-03 08:31:05 +02:00
Keith Hall 753bfaff49 Improve Ansi theme for better Man page syntax highlighting 2025-01-03 08:31:05 +02:00
Keith Hall 9744971b19 Patch OneHalfDark theme for better Man page syntax highlighting 2025-01-03 08:31:05 +02:00
Keith Hall c8f7787281 Patch TwoDark theme for better Man page syntax highlighting 2025-01-03 08:31:05 +02:00
Keith Hall b7b05a3553 Fix for OPTIONS consisting of a plain dash 2025-01-03 08:20:40 +02:00
Lili Wilson 3fa9044029 added patch for puppet syntax highlighting in markdown 2024-12-30 21:27:28 +02:00
Fernando Pérez-García d832367d95 Use TOML syntax highlighting for uv.lock 2024-11-22 22:39:35 +00:00
Keith Hall 41ef01f25d Merge branch 'master' into update-sublime-snazzy-theme 2024-11-21 20:30:53 +02:00
Cosmic Horror 57a8b10883 Bump themes/Nord-submlime from 0d655b2 bf92a9e 2024-11-21 05:19:56 +02:00
Keith Hall da4defad07 Merge branch 'master' into master 2024-11-13 21:59:48 +02:00
Keith Hall 60693db73f Merge branch 'master' into dark-light 2024-11-13 20:33:37 +02:00
volklord 15f2553a3d bat.zsh.in: Remove duplicate word
Remove the duplicate word `disable disable`
2024-11-13 20:30:04 +02:00
Pratik Munot 5042844342 Adding pipe delimeter support for csv files 2024-10-29 21:34:47 -07:00
Tau Gärtli 89ce060183 Update help, man page and completions 2024-08-18 20:32:59 +02:00
Tau Gärtli bc42149a72 Merge color scheme options into theme / BAT_THEME 2024-08-18 14:59:14 +02:00
Tau Gärtli b9b981f657 Generalize --detect-color-scheme to --color-scheme 2024-08-16 14:14:30 +02:00
Tau Gärtli 9a1bfe946d Update completions and man page 2024-08-16 14:12:23 +02:00
Koichi Murase d5aa9d8e05 Add options generated by completions to the man page 2024-07-29 12:18:40 +09:00
Koichi Murase b1cdc06430 Add --no-* options to Bash/Zsh completions 2024-07-29 12:18:40 +09:00
Koichi Murase 83a15ac05f Add --cache-dir to Fish completion 2024-07-29 12:18:40 +09:00
Koichi Murase 43a77a42f8 Add options present in --help to Bash completion 2024-07-29 12:18:40 +09:00
Koichi Murase 44ca1e7df1 Add options present in --help to the man page 2024-07-29 12:18:40 +09:00
Brenton Bostick 10456e1d51 Merge branch 'master' into add-cfml 2024-07-25 15:54:50 -04:00
Michael Vorburger ff71e32c0f Update the Protobuf sobmodule (fixes #2542) 2024-07-21 23:14:12 +02:00
Brenton Bostick de697f7717 add CFML syntax 2024-07-17 15:46:38 -04:00
Cosmic Horror 575457c944 Bump themes/sublime-snazzy from 7034320 48f43a7 2024-06-30 23:43:32 -06:00
ccQpein 503b2c5126 fix the prefix 2024-05-27 16:22:07 -04:00
ccQpein 61005f19fa patch the lisp syntax 2024-05-27 15:52:26 -04:00
Sharun 9eaed3e3f0 [JavaScript] Support bun in shebang for syntax highlighting (#2913)
* [JavaScript] Support bun in shebang for syntax highlighting

---------

Co-authored-by: Keith Hall <keith-hall@users.noreply.github.com>
2024-04-15 06:17:41 +00:00
dependabot[bot] a1f85b9e06 Bump assets/syntaxes/02_Extra/Julia from 98233f9 to 3366b10 (#2918)
Bumps [assets/syntaxes/02_Extra/Julia](https://github.com/JuliaEditorSupport/Julia-sublime) from `98233f9` to `3366b10`.
- [Release notes](https://github.com/JuliaEditorSupport/Julia-sublime/releases)
- [Commits](https://github.com/JuliaEditorSupport/Julia-sublime/compare/98233f96d4827a1a576c0b8bf87a68b9c97e4306...3366b10be91aaab7a61ae0bc0a5af5cc375e58d1)

---
updated-dependencies:
- dependency-name: assets/syntaxes/02_Extra/Julia
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01 02:47:26 +00:00
dependabot[bot] 95993cf37e Bump assets/syntaxes/02_Extra/cmd-help from b150d84 to 209559b (#2841)
Bumps [assets/syntaxes/02_Extra/cmd-help](https://github.com/victor-gp/cmd-help-sublime-syntax) from `b150d84` to `209559b`.
- [Commits](https://github.com/victor-gp/cmd-help-sublime-syntax/compare/b150d84534dd060afdcaf3f58977faeaf5917e56...209559b72f7e8848c988828088231b3a4d8b6838)

---
updated-dependencies:
- dependency-name: assets/syntaxes/02_Extra/cmd-help
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-08 07:54:17 +00:00
dependabot[bot] 196a4cb18f Bump assets/themes/zenburn from e627f1c to 86d4ee7 (#2842)
Bumps [assets/themes/zenburn](https://github.com/colinta/zenburn) from `e627f1c` to `86d4ee7`.
- [Commits](https://github.com/colinta/zenburn/compare/e627f1cb223c1171ab0a6a48d166c87aeae2a1d5...86d4ee7a1f884851a1d21d66249687f527fced32)

---
updated-dependencies:
- dependency-name: assets/themes/zenburn
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-01 03:15:26 +00:00
dependabot[bot] cd81c7fa6b Bump assets/syntaxes/02_Extra/SublimeJQ from 6870582 to b7e53e5 (#2820)
* Bump assets/syntaxes/02_Extra/SublimeJQ from `6870582` to `b7e53e5`

Bumps [assets/syntaxes/02_Extra/SublimeJQ](https://github.com/zogwarg/SublimeJQ) from `6870582` to `b7e53e5`.
- [Commits](https://github.com/zogwarg/SublimeJQ/compare/687058289c1a888e0895378432d66b41609a84d8...b7e53e5d86814f04a48d2e441bcf5f9fdf07e9c1)

---
updated-dependencies:
- dependency-name: assets/syntaxes/02_Extra/SublimeJQ
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* update highlighted version of sample.jq

* update changelog

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Keith Hall <kingkeith+github@gmail.com>
2024-01-03 14:16:33 +00:00
Víctor González Prieto 497342fabb Bump cmd-help syntax to latest
Manual update (as opposed to Dependabot's) because the highlighting for
the test help message has changed. It's all good because it's as
intended, an improvement.

See victor-gp/cmd-help-sublime-syntax#23
2023-12-29 18:15:55 +01:00
dependabot[bot] 96cef9a24e Bump assets/themes/zenburn from 43dc527 to e627f1c (#2790)
Bumps [assets/themes/zenburn](https://github.com/colinta/zenburn) from `43dc527` to `e627f1c`.
- [Commits](https://github.com/colinta/zenburn/compare/43dc527731731666d6d2b1311e86951a8ce07fec...e627f1cb223c1171ab0a6a48d166c87aeae2a1d5)

---
updated-dependencies:
- dependency-name: assets/themes/zenburn
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-01 10:38:36 +00:00
Oliver Kiddle b43d31b75a Improvements and fixes to zsh completion
* Use correct return status so that approximate completion isn't broken
* Follow zsh conventions on description forms
* Some options can be used multiple times, e.g. -H, -r, --file-name
* Set completion context correctly for the cache subcommand
* Better completion for --map-syntax argument
* Add --nonprintable-notation option
* Correct some of the mutual exclusion lists for options
2023-12-01 11:11:44 +01:00
Maria José Solano 04e7d2a313 fix(completions): add missing fish completions 2023-11-04 08:51:13 +01:00
Martin Nordholts fc9546854f Bump version to v0.24.0
We need to bump 0.x.0 because the library API changed in incompatible
ways:

    $ cargo public-api diff
    Resolved `diff` to `diff 0.23.0`
    Removed items from the public API
    =================================
    (none)

    Changed items in the public API
    ===============================
    -pub fn bat::controller::Controller<'b>::run(&self, inputs: alloc::vec::Vec<bat::input::Input<'_>>) -> bat::error::Result<bool>
    +pub fn bat::controller::Controller<'b>::run(&self, inputs: alloc::vec::Vec<bat::input::Input<'_>>, output_buffer: core::option::Option<&mut dyn core::fmt::Write>) -> bat::error::Result<bool>
    -pub fn bat::controller::Controller<'b>::run_with_error_handler(&self, inputs: alloc::vec::Vec<bat::input::Input<'_>>, handle_error: impl core::ops::function::Fn(&bat::error::Error, &mut dyn std::io::Write)) -> bat::error::Result<bool>
    +pub fn bat::controller::Controller<'b>::run_with_error_handler(&self, inputs: alloc::vec::Vec<bat::input::Input<'_>>, output_buffer: core::option::Option<&mut dyn core::fmt::Write>, handle_error: impl core::ops::function::Fn(&bat::error::Error, &mut dyn std::io::Write)) -> bat::error::Result<bool>

    Added items to the public API
    =============================
    [...]
2023-10-11 19:14:12 +02:00
Mészáros Máté Róbert 63aaa03013 Update the ssh-config submodule (#2697)
* Update the ssh-config submodule

Pull in the fix for the syntax.
Fixes #2359

* Extend the ssh_config syntax test
2023-10-10 06:16:41 +02:00
rhysd d376a4b631 Add support for WGSL 2023-10-04 09:09:54 +02:00
Anomalocaridid b56021ffa9 make LESSOPEN support opt-in 2023-09-08 06:25:20 +02:00