From 738e6eeb7b758c5cecc539cf7d61380772344e76 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 14 Nov 2024 09:18:35 -0700 Subject: [PATCH] Disable text previews until performance issues are fixed --- src/tab.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tab.rs b/src/tab.rs index 565219f..3a8012d 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -1210,6 +1210,7 @@ impl ItemThumbnail { } } } else if mime.type_() == mime::TEXT && check_size("text", 8 * 1000 * 1000) { + /*TODO: fix performance issues, widget::text_editr::Content::with_text forces all text to shape, which blocks rendering match fs::read_to_string(&path) { Ok(data) => { return ItemThumbnail::Text(widget::text_editor::Content::with_text(&data)); @@ -1218,6 +1219,7 @@ impl ItemThumbnail { log::warn!("failed to read {:?}: {}", path, err); } } + */ } // Try external thumbnailers