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.

Ctrl+wheel steps through List between Details and the grid, as Explorer

gelenmedyaa588d015f352
diff --git a/crates/rf-app/src/folder_view.rs b/crates/rf-app/src/folder_view.rs
index f25621c7..9e4cbf18 100644
--- a/crates/rf-app/src/folder_view.rs
+++ b/crates/rf-app/src/folder_view.rs
@@ -3625,18 +3625,26 @@ impl FolderView {
cx.notify();
}
- /// One size step bigger (`delta` > 0) or smaller, as Explorer's Ctrl+wheel goes: from the details list up into the grid at its
- /// smallest, through the grid's sizes, and from the smallest grid down into the details list again.
+ /// One size step bigger (`delta` > 0) or smaller, as Explorer's Ctrl+wheel goes: Details, List, then the grid from its smallest
+ /// size up, and back down the same way. (The List step was missing until 1.0.7: from the smallest grid it went straight to
+ /// Details; Discord, 2026-12-02.)
pub fn zoom(&mut self, delta: i32, cx: &mut Context<Self>) {
+ let list = self.view_mode == ViewMode::Grid && self.grid_style == GridStyle::List;
if self.view_mode != ViewMode::Grid || self.grid_style != GridStyle::Tiles {
if delta > 0 {
- self.grid_size = 0;
- self.set_view_mode(ViewMode::Grid, cx);
+ if self.view_mode == ViewMode::Details {
+ self.set_layout(ViewMode::Grid, GridStyle::List, cx);
+ } else {
+ self.grid_size = 0;
+ self.set_view_mode(ViewMode::Grid, cx);
+ }
+ } else if list {
+ self.set_view_mode(ViewMode::Details, cx);
}
return;
}
if delta < 0 && self.grid_size == 0 {
- self.set_view_mode(ViewMode::Details, cx);
+ self.set_layout(ViewMode::Grid, GridStyle::List, cx);
return;
}
let n = (self.grid_size as i32 + delta).clamp(0, GRID_SIZES.len() as i32 - 1) as u8;