mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-26 05:47:32 +00:00
Display icons when file names are too long for grid
Fixes ogham/exa#548
This commit is contained in:
parent
89c861f24d
commit
dd9dffff8c
@ -63,6 +63,9 @@ impl<'a> Render<'a> {
|
|||||||
// This isn’t *quite* the same as the lines view, which also
|
// This isn’t *quite* the same as the lines view, which also
|
||||||
// displays full link paths.
|
// displays full link paths.
|
||||||
for file in &self.files {
|
for file in &self.files {
|
||||||
|
if self.opts.icons {
|
||||||
|
write!(w, "{}", painted_icon(&file, &self.style))?;
|
||||||
|
}
|
||||||
let name_cell = self.style.for_file(file, self.colours).paint();
|
let name_cell = self.style.for_file(file, self.colours).paint();
|
||||||
writeln!(w, "{}", name_cell.strings())?;
|
writeln!(w, "{}", name_cell.strings())?;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user