1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-03-13 22:28:26 +00:00

Merge eb36513bce522b08c20790bee3d43ca8791114cd into 23fd20048272922c87ea4759f5b7a52ceb8e6d1a

This commit is contained in:
Dominik Wagner 2024-07-28 12:42:57 +02:00 committed by GitHub
commit 95fc22fecf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -42,6 +42,7 @@
- Update the Lisp syntax, see #2970 (@ccqpein)
- Use bat's ANSI iterator during tab expansion, see #2998 (@eth-p)
- Support 'statically linked binary' for aarch64 in 'Release' page, see #2992 (@tzq0301)
- `--theme` now provides a short list of all themes if the given theme does not exist, see #3009 (@monkeydom)
## Syntaxes

View File

@ -245,7 +245,12 @@ impl HighlightingAssets {
return self.get_theme("ansi");
}
if !theme.is_empty() {
bat_warning!("Unknown theme '{}', using default.", theme)
let all_themes: Vec<&str> = self.get_theme_set().themes().collect();
bat_warning!(
"Unknown theme '{}', using default. (Available themes: {})",
theme,
all_themes.join(", ")
);
}
self.get_theme_set()
.get(self.fallback_theme.unwrap_or_else(Self::default_theme))