mirror of
https://github.com/sharkdp/bat
synced 2026-07-30 18:11:44 +00:00
Add a "builtin" pager using the Minus crate
This commit is contained in:
committed by
Academician
parent
929669728c
commit
a470cebf32
+2
-5
@@ -16,7 +16,7 @@ use std::io::{BufReader, Write};
|
||||
use std::path::Path;
|
||||
use std::process;
|
||||
|
||||
use bat::output::{OutputHandle, OutputType};
|
||||
use bat::output::OutputType;
|
||||
use bat::theme::DetectColorScheme;
|
||||
use nu_ansi_term::Color::Green;
|
||||
use nu_ansi_term::Style;
|
||||
@@ -229,10 +229,7 @@ pub fn list_themes(
|
||||
)?;
|
||||
config.theme = theme.to_string();
|
||||
Controller::new(&config, &assets)
|
||||
.run(
|
||||
vec![theme_preview_file()],
|
||||
Some(OutputHandle::IoWrite(&mut writer)),
|
||||
)
|
||||
.run(vec![theme_preview_file()], Some(&mut writer))
|
||||
.ok();
|
||||
writeln!(writer)?;
|
||||
} else if config.loop_through {
|
||||
|
||||
Reference in New Issue
Block a user