pub enum Col {
Mark,
Git,
Branch,
DeviceId,
Permission,
Date,
Size,
Count,
Staged,
Name,
}
Expand description
One of the “columns” of the tree view
Variants§
Mark
selection mark, typically a triangle on the selected line
Git
Git file status
Branch
the branch showing filliation
DeviceId
The filesystem’s device id (unix only)
Permission
file mode and ownership
Date
last modified date
Size
file size, including size bar in sort_by_size mode
Count
number of files in the directory
Staged
marks whether the path is staged (not used for now, may be removed)
Name
name of the file, or subpath if relevant due to filtering mode
Implementations§
source§impl Col
impl Col
sourcepub fn index_in(self, cols: &Cols) -> Option<usize>
pub fn index_in(self, cols: &Cols) -> Option<usize>
return the index of the column among the complete Cols ordered list
sourcepub fn needs_left_margin(self) -> bool
pub fn needs_left_margin(self) -> bool
tell whether this column should have an empty character left