Skip to content

Commit

Permalink
use most verbose visualization by default after scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thiel committed Jun 4, 2019
1 parent fcdc355 commit 39ad2a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/interactive/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub struct DisplayByteVisualization {

impl Default for ByteVisualization {
fn default() -> Self {
ByteVisualization::Bar
ByteVisualization::PercentageAndBar
}
}

Expand Down Expand Up @@ -351,7 +351,8 @@ impl TerminalApp {
B: Backend,
{
terminal.hide_cursor()?;
let display_options: DisplayOptions = options.clone().into();
let mut display_options: DisplayOptions = options.clone().into();
display_options.byte_vis = ByteVisualization::Bar;
let traversal = Traversal::from_walk(options, input, move |traversal| {
terminal.draw(|mut f| {
let full_screen = f.size();
Expand All @@ -377,6 +378,7 @@ impl TerminalApp {
let selected = sorted_entries(&traversal.tree, root, sorting)
.get(0)
.map(|(idx, _)| *idx);
display_options.byte_vis = ByteVisualization::PercentageAndBar;
Ok(TerminalApp {
state: AppState {
root,
Expand Down

0 comments on commit 39ad2a8

Please sign in to comment.