1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-01 19:02:22 +01:00
Commit Graph

3465 Commits

Author SHA1 Message Date
dependabot[bot]
c80e3c7c0d build(deps): bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-01 05:05:39 +00:00
Sorin Sbarnea
d291b3e5fa chore: Fix some typos (#3244) 2025-08-28 17:30:50 +00:00
Josef Andersson
6772225477 docs(security): add initial security policy (#3290) 2025-08-27 18:33:50 +00:00
Vedant Mohan Goyal
339e7df0bc Update winget-releaser to latest (#3012) 2025-08-25 05:29:04 +00:00
Keith Hall
297e8280d9 Merge pull request #3376 from eric-menne/fix/ctrl-c_fails_in_powershell
Fix ctrl-c fails in powershell
2025-08-22 17:59:35 +03:00
Eric Menne
d397bea6dc Fix typo and clarify description 2025-08-22 17:49:53 +03:00
Eric Menne
3d174b8c09 Updated README.md to include -K option for less 2025-08-22 17:49:53 +03:00
Eric Menne
d9dd9729b8 Add flag to less to enable quitting on Ctrl-C 2025-08-22 17:49:53 +03:00
Martin Nordholts
c657b18efd README.md: Put some requirements on installation instructions
Adding new installation methods increases risk of supply chain exploits
and increases burden of maintainers. Let's put some requirements on what
installation methods to have in the README.md
2025-08-22 06:24:51 +02:00
Keith Hall
c9b41b1df7 Merge pull request #3381 from CalebLarsen/update-docs
docs: added minor theming documentation notes
2025-08-22 07:12:17 +03:00
Caleb Larsen
45efc4117e docs: added minor theming documentation notes
.
2025-08-22 06:04:22 +02:00
Keith Hall
6a74283289 Merge pull request #3382 from CosmicHorrorDev/update-github-theme
deps: Bump assets/themes/github-sublime-theme from `508740b` to `59e525f`
2025-08-20 08:04:30 +03:00
Cosmic Horror
120c39429f deps: Bump assets/themes/github-sublime-theme from 508740b to 59e525f 2025-08-19 21:53:01 -06:00
Keith Hall
1c6ad4d514 Merge pull request #3345 from cavanaug/master
Support context in line ranges
2025-08-20 06:43:36 +03:00
John Cavanaugh
36d25c8642 Merge branch 'master' into master 2025-08-19 20:34:08 -07:00
Yuri Astrakhan
caf6fa369f chore: add CI linting
* ensure `cargo clippy` treats all suggestions as errors in CI
* ensure `cargo clippy` runs with the latest stable Rust because Clippy is MSRV-aware, so it will not suggest anything unapplicable. Also note that whenever new release comes out, Clippy might temporarily show new errors - I think this is  better than forgetting to update the version somewhere, and keep running older tools.
* Update actions/checkout to the latest v5
2025-08-19 18:26:24 +02:00
Yuri Astrakhan
503c50b1ec chore: address all cargo clippy lints
* also do a bit of a doc cleanup for the `load_from_folder` fn
2025-08-19 05:22:47 +02:00
Yuri Astrakhan
d9fbd18541 inline format arguments
In a few cases, removed the unneeded `&` - this causes a minor slowdown because compiler cannot eliminate those (yet).
2025-08-19 05:07:54 +02:00
Keith Hall
9824090654 Merge pull request #3369 from forkeith/utf16le
Fix the read_line method for utf16le/be input
2025-08-16 15:49:16 +03:00
Keith Hall
bdaf25793d cargo fmt 2025-08-16 15:36:45 +03:00
Keith Hall
96ce80d0e2 Apply same fix and tests for UTF16BE 2025-08-16 15:36:45 +03:00
Keith Hall
40c4c8e542 More thorough tests for UTF16LE 2025-08-16 15:35:57 +03:00
Keith Hall
6675153460 Fix the read_line method for utf16le input
to determine the end of the line, instead of reading until \n (0x0A) and then reading until 0x00 and calling it done, read until we find 0x00 preceded by 0x0A.
2025-08-16 15:35:57 +03:00
dependabot[bot]
76e6a49a2e Bump assets/syntaxes/02_Extra/Fish from 98316d4 to ef510fd
Bumps [assets/syntaxes/02_Extra/Fish](https://github.com/Phidica/sublime-fish) from `98316d4` to `ef510fd`.
- [Release notes](https://github.com/Phidica/sublime-fish/releases)
- [Commits](98316d4332...ef510fd759)

---
updated-dependencies:
- dependency-name: assets/syntaxes/02_Extra/Fish
  dependency-version: ef510fd7592186d3c7f6aa066986c047ec29fe81
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-16 08:26:08 +02:00
joshua!
1bcf760d90 docs: Include GNOME bash script for Dark Mode
Title.  I developed this on Fedora 39 with GNOME. Tested and works on my setup as expected.
2025-08-16 07:52:18 +02:00
dependabot[bot]
94f1035c08 Bump nix from 0.29.0 to 0.30.1
Bumps [nix](https://github.com/nix-rust/nix) from 0.29.0 to 0.30.1.
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nix-rust/nix/compare/v0.29.0...v0.30.1)

---
updated-dependencies:
- dependency-name: nix
  dependency-version: 0.30.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-16 07:33:52 +02:00
John Cavanaugh
3516a3311a Merge branch 'master' into master 2025-08-15 06:34:33 -07:00
John Cavanaugh
f79adaf607 test: 🚨 update tests for truncated multiline.txt
test(tests/examples/multiline.txt): 🚨 trim sample file to 10 lines to match new behavior
test(tests/integration_tests.rs): 🚨 adjust line ranges and expected outputs for 10-line sample; add multi-range context test
2025-08-15 05:57:41 -07:00
alcroito
d9ac757b6a Add CI build for windows/ARM64
Fixes: #2644
2025-08-14 17:56:00 +02:00
John Cavanaugh
58bfcd9051 style: 🎨 reformat predicate assertions
style(integration_tests.rs): 🎨 doh, run cargo fmt
2025-08-13 23:31:17 -07:00
John Cavanaugh
67e3e42531 test: 🚨 extend line-range tests
test(tests/examples/multiline.txt): 🚨 add lines 5-20 to sample file for expanded line-range tests
test(tests/integration_tests.rs): 🚨 update expected outputs and add comprehensive context and error tests for line-range feature
2025-08-13 23:29:58 -07:00
John Cavanaugh
3fd3f1def8 Merge branch 'master' into master 2025-08-13 23:27:26 -07:00
Keith Hall
6d849e53d2 Merge pull request #3373 from wcampbell0x2a/add-name-to-x86-asm-sublime-syntax
Add x86_64 Assembly to x86 sublime syntax file
2025-08-13 09:44:13 +03:00
Keith Hall
7fc3d6b588 Update assets/syntaxes/02_Extra/Assembly (x86_64).sublime-syntax 2025-08-13 09:34:59 +03:00
wcampbell
1a931224eb Add x86_64 Assembly to x86 sublime syntax file
* Using ARM Assembly with the bat library works with .language("ARM Assembly"),
  while x86 has no name. Add name to sublime syntax file.
2025-08-13 00:09:31 -04:00
Keith Hall
60833ae5ec Merge pull request #3372 from Nicholas42/master
update gruvbox theme
2025-08-10 19:12:53 +03:00
Nicholas Schwab
183def9569 docs(changelog): update gruvbox theme 2025-08-10 17:52:30 +02:00
Nicholas Schwab
77cfca1aff update gruvbox theme
This fixes https://github.com/sharkdp/bat/issues/2115 for this theme
2025-08-10 17:37:56 +02:00
Keith Hall
d9cc01b50c Merge pull request #3370 from qianbinbin/fix/manpager
Make MANPAGER more portable
2025-08-10 06:17:17 +03:00
Binbin Qian
466087156f Update man usage for Chinese docs 2025-08-09 13:53:00 +08:00
Binbin Qian
a8d610c6e8 Make MANPAGER more portable 2025-08-09 13:52:34 +08:00
Keith Hall
30b42149aa Merge pull request #3200 from forkeith/add_missing_switches_to_manpage
Add missing command line switches to manpage
2025-08-08 06:35:31 +03:00
Keith Hall
c25e005c87 Add missing command line switches to manpage
- `--binary`
- `--completion`
- `--strip-ansi`
2025-08-08 06:21:41 +03:00
Keith Hall
c4d7451841 Merge pull request #3365 from deflektor/update/CompletionPwsh
Update ps1 completion
2025-08-08 06:19:29 +03:00
deflektor
d4fc07a347 Update _bat.ps1.in 2025-08-08 06:11:04 +03:00
deflektor
0238473868 Update assets/completions/_bat.ps1.in
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-08 06:11:04 +03:00
deflektor
4363ddf0fb Update assets/completions/_bat.ps1.in
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-08 06:11:04 +03:00
deflektor
43c5fef70a Update assets/completions/_bat.ps1.in
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-08 06:11:04 +03:00
deflektor
7e436e307d Update assets/completions/_bat.ps1.in
changed back to Template

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-08 06:11:04 +03:00
deflektor
b4d529402a Update ps1 completion;removed shortcuts from completion;added completion for language, theme and options 2025-08-08 06:11:04 +03:00