Skip to content

A fast file manager for Windows and macOS that never freezes: tabs, dual panes, archives as folders, Quick Look-style previews. A File Explorer and Finder alternative written in Rust.

An item's details card waits a second before it shows

gelenmedya1bc04a088cb6
diff --git a/crates/rf-app/src/folder_view.rs b/crates/rf-app/src/folder_view.rs
index e0ee98b0..4418b976 100644
--- a/crates/rf-app/src/folder_view.rs
+++ b/crates/rf-app/src/folder_view.rs
@@ -124,6 +124,10 @@ const TIP_LABEL_W: f32 = 96.;
/// agree on what a page is.
const PAGE_STEP: isize = 20;
+/// How long the pointer rests on an item before its details card comes. The toolkit's own half second showed the card on
+/// every short stop of the pointer while moving through a folder (felt as disturbing, 2026-12-05); a second is about what File Explorer's own tip takes.
+const ITEM_TIP_DELAY: std::time::Duration = std::time::Duration::from_millis(1000);
+
/// The card an item shows when the pointer rests on it: its name with a dot in its kind's colour, then its details as a table
/// with the labels dimmed, so that the eye finds the value it is after, and its Git state spelled out.
///
@@ -1552,7 +1556,7 @@ impl FolderView {
.on_mouse_down(MouseButton::Middle, cx.listener(move |this, ev: &MouseDownEvent, _, cx| this.middle_open(vi, ev.modifiers.shift, cx)))
.when_some(self.path_of(ei), |d, path| file_drop_target(d, path, is_dir, &p))
// (not while a menu is open: the details stood behind the right-click menu, a Discord report)
- .when(item_tips, |d| d.tooltip(move |w, cx| {
+ .when(item_tips, |d| d.tooltip_show_delay(ITEM_TIP_DELAY).tooltip(move |w, cx| {
let media: HoverMedia = tip_path.as_ref().and_then(|path| hover_media_cache().lock().get(path).cloned()).map(|m| (*m).clone()).unwrap_or_default();
let (entry, path, size) = (tip_entry.clone(), tip_path.clone(), tip_folder_size.clone());
gpui_kit::component::tooltip::Tooltip::element(move |window, _| item_tip_card(&entry, path.as_ref(), size.clone(), &media, tip_git, &Palette::for_window(window))).build(w, cx)
@@ -4373,7 +4377,7 @@ impl FolderView {
.on_mouse_down(MouseButton::Middle, cx.listener(move |this, ev: &MouseDownEvent, _, cx| this.middle_open(vi, ev.modifiers.shift, cx)))
.when_some(self.path_of(ei), |d, path| file_drop_target(d, path, e.is_dir(), &p))
// (not while a menu is open: the details stood behind the right-click menu, a Discord report)
- .when(item_tips, |d| d.tooltip(move |w, cx| {
+ .when(item_tips, |d| d.tooltip_show_delay(ITEM_TIP_DELAY).tooltip(move |w, cx| {
let media: HoverMedia = tip_path.as_ref().and_then(|path| hover_media_cache().lock().get(path).cloned()).map(|m| (*m).clone()).unwrap_or_default();
let (entry, path, size) = (tip_entry.clone(), tip_path.clone(), tip_folder_size.clone());
gpui_kit::component::tooltip::Tooltip::element(move |window, _| item_tip_card(&entry, path.as_ref(), size.clone(), &media, tip_git, &Palette::for_window(window))).build(w, cx)
@@ -6796,7 +6800,7 @@ impl FolderView {
})
.children(prop_cells)))
// (not while a menu is open: the details stood behind the right-click menu, a Discord report)
- .when(item_tips, |d| d.tooltip(move |w, cx| {
+ .when(item_tips, |d| d.tooltip_show_delay(ITEM_TIP_DELAY).tooltip(move |w, cx| {
let media: HoverMedia = tip_path.as_ref().and_then(|path| hover_media_cache().lock().get(path).cloned()).map(|m| (*m).clone()).unwrap_or_default();
let (entry, path, size) = (tip_entry.clone(), tip_path.clone(), tip_folder_size.clone());
gpui_kit::component::tooltip::Tooltip::element(move |window, _| item_tip_card(&entry, path.as_ref(), size.clone(), &media, tip_git, &Palette::for_window(window))).build(w, cx)