implement local directory browser widget

This commit is contained in:
yggverse 2025-02-14 20:09:13 +02:00
parent 2a1f4a89ac
commit 7cd5555aa2
4 changed files with 131 additions and 27 deletions

View file

@ -1,7 +1,9 @@
mod directory;
mod image;
mod status;
mod text;
use directory::Directory;
use image::Image;
use text::Text;
@ -129,6 +131,11 @@ impl Content {
text
}
pub fn to_directory(&self, file: &File) {
self.clean();
self.g_box.append(&Directory::for_file(file))
}
/// * system `source:`
pub fn to_text_source(&self, data: &str) -> Text {
self.clean();