diff options
author | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-06 10:55:42 +0530 |
---|---|---|
committer | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-06 10:55:42 +0530 |
commit | 2f3f214e03de477ad05aa12a1ac2ba0775a36c14 (patch) | |
tree | f6949498836097d5e296245e99de6f002c2c3e9e /src/interactive/widgets/entries.rs | |
parent | 53add13094a39751158f8cae27988bcbee47d08d (diff) |
preparing for displaying the marked state in entries list
Diffstat (limited to 'src/interactive/widgets/entries.rs')
-rw-r--r-- | src/interactive/widgets/entries.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/interactive/widgets/entries.rs b/src/interactive/widgets/entries.rs index 8a740e3..f364110 100644 --- a/src/interactive/widgets/entries.rs +++ b/src/interactive/widgets/entries.rs @@ -1,4 +1,4 @@ -use crate::interactive::{DisplayOptions, EntryDataBundle}; +use crate::interactive::{DisplayOptions, EntryDataBundle, EntryMark}; use dua::traverse::{Tree, TreeIndex}; use itertools::Itertools; use std::{borrow::Borrow, path::Path}; @@ -16,6 +16,7 @@ pub struct EntriesProps<'a> { pub display: DisplayOptions, pub selected: Option<TreeIndex>, pub entries: &'a [EntryDataBundle], + pub marked: &'a [EntryMark], pub border_style: Style, pub is_focussed: bool, } @@ -38,6 +39,7 @@ impl Entries { display, entries, selected, + marked: _, border_style, is_focussed, } = props.borrow(); @@ -128,6 +130,7 @@ impl Entries { .into(), style, ); + let name = Text::Styled( fill_background_to_right( format!( |