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.
Rust archive-managerdesktop-appdual-paneexplorer-alternativefile-browserfile-explorerfile-managerfluent-designgpu-acceleratedgpuimacosmicaproductivityquick-lookrustrust-guitabswindowswindows-11windows-explorer
Home: the drives in groups, as in This PC
Alpha Malick DIAWARA560397497381
diff --git a/crates/rf-app/src/folder_view.rs b/crates/rf-app/src/folder_view.rsindex ace6d76d..5a526f19 100644--- a/crates/rf-app/src/folder_view.rs+++ b/crates/rf-app/src/folder_view.rs@@ -7049,8 +7049,19 @@ impl FolderView {);}- let mut drive_grid = div().grid().grid_cols(tile_cols(avail, 240., 340., 12.)).gap_3();+ // (the cards of each group: with the groups off they are all in the first)+ let split_drives = cx.global::<crate::settings::Settings>().home_split_drives;+ let mut drive_cards: [Vec<AnyElement>; 3] = Default::default();for (i, d) in drives.into_iter().enumerate() {+ let slot = if !split_drives {+ 0+ } else {+ match d.kind {+ rf_win::DriveKind::Removable | rf_win::DriveKind::Optical => 1,+ rf_win::DriveKind::Network => 2,+ _ => 0,+ }+ };let root = d.root.clone();let usage_root = d.root.clone();let shell_icon = if windows_file_explorer_theme {@@ -7063,7 +7074,7 @@ impl FolderView {let frac = d.used_fraction();let bar_color = if frac > 0.9 { p.danger } else { p.accent };let menu_root = root.clone();- drive_grid = drive_grid.child(+ drive_cards[slot].push(card(("drive", i).into()).min_w_0().child(@@ -7127,9 +7138,27 @@ impl FolderView {cx.stop_propagation();cx.emit(FolderEvent::SidebarMenu(menu_root.clone()));}),- ),+ )+ .into_any_element(),);}+ let mut drive_sections: Vec<AnyElement> = Vec::new();+ if shown("drives") {+ let [local, removable, network_drives] = drive_cards;+ let groups: [(&str, &'static str, Vec<AnyElement>); 3] = if split_drives {+ [("drives_local", t!("Yerel diskler"), local), ("drives_removable", t!("Çıkarılabilir sürücüler"), removable), ("drives_network", t!("Ağ sürücüleri"), network_drives)]+ } else {+ [("drives", t!("Sürücüler"), local), ("drives_removable", "", removable), ("drives_network", "", network_drives)]+ };+ for (key, title, cards) in groups {+ if cards.is_empty() || !shown(key) {+ continue;+ }+ drive_sections.push(+ v_flex().gap_4().child(section(title)).child(div().grid().grid_cols(tile_cols(avail, 240., 340., 12.)).gap_3().children(cards)).into_any_element(),+ );+ }+ }// phones and cameras (not drives): none connected = no group at alllet has_devices = !devices.is_empty();@@ -7385,7 +7414,7 @@ impl FolderView {.p_6().gap_4().when(shown("quick"), |d| d.child(section(t!("Hızlı Erişim"))).child(pinned_grid).child(div().h_2()))- .when(shown("drives"), |d| d.child(section(t!("Sürücüler"))).child(drive_grid))+ .children(drive_sections).when(has_devices, |d| d.child(div().h_2()).child(section(t!("Cihazlar"))).child(device_grid)).when(has_network, |d| d.child(div().h_2()).child(section(t!("Ağ konumları"))).child(network_grid)).when(has_tags, |d| d.child(div().h_2()).child(section(t!("Etiketler"))).child(tag_grid))diff --git a/crates/rf-app/src/i18n_en.rs b/crates/rf-app/src/i18n_en.rsindex 5b33cb3b..1342395e 100644--- a/crates/rf-app/src/i18n_en.rs+++ b/crates/rf-app/src/i18n_en.rs@@ -2494,4 +2494,18 @@ pub const EN: &[(&str, &str)] = &[("Kapalıyken Ctrl+9, 9. sekmeye geçer.", "When off, Ctrl+9 switches to the 9th tab."),("Saatte saniyeleri göster", "Show seconds in the clock"),("Dock'un saati saniyeleri de gösterir; saat o zaman dakikada bir değil, saniyede bir yeniden çizilir.", "The Dock's clock shows the seconds too; it is then drawn again every second instead of once a minute."),+ ("Masaüstündeyken Dock'u gizle", "Hide the dock on the desktop"),+ ("Otomatik gizleme açıkken Dock, ekranı kaplayan büyütülmüş bir pencere yokken (masaüstü, ortada duran küçük pencereler dahil) saklanır; bir pencere büyütülünce ya da imleç alt kenara gelince geri gelir. OLED ekranlarda ekran yanmasını önler.", "With auto-hide on, the dock hides while no maximized window fills the screen (the desktop, even with small windows floating on it) and comes back when a window is maximized or the pointer reaches the bottom edge. It keeps an OLED screen from burn-in."),+ ("Dock boyu", "Dock height"),+ ("Otomatik: ekranda büyütülmüş bir pencere varken orta ada yan adalar kadar inceleşir ve pencere o kadar yer kazanır. Büyük ve Kompakt: Dock pencerelere bakmadan hep o boyda kalır. Her üçünde de fareyi yaklaştırınca simgeler büyür.", "Automatic: while a maximized window is on the screen the middle island becomes as thin as the side islands and the window gains that room. Large and Compact: the dock always keeps that height, whatever the windows do. In all three the icons grow when the pointer comes near."),+ ("Kompakt", "Compact"),+ ("Klasik Başlat menüsü", "Classic Start menu"),+ ("Başlat paneli, sabitlenmiş uygulamaları solda bir liste, Belgeler, Resimler, Bu bilgisayar, Denetim Masası gibi konumları sağda gösteren klasik bir menü olarak açılır. Kapalıyken simge ızgarası görünür.", "The Start panel opens as a classic menu: the pinned apps as a list on the left, and places such as Documents, Pictures, This PC and Control Panel on the right. Off: the grid of tiles is shown."),+ ("Windows masaüstünün yerleşimini kopyala", "Copy the Windows desktop layout"),+ ("rustyfiles masaüstü bir sonraki açılışında, simgelerin Windows masaüstündeki yerlerini yeniden alır; böylece simgeleriniz karışmaz. Windows'un masaüstü kullanılırken bu anahtarı açıp \"Windows'un kendi masaüstünü kullan\"ı kapatın. Kopyalanınca kendiliğinden kapanır; rustyfiles masaüstündeki mevcut yerleşimin yerini alır.", "The next time the rustyfiles desktop starts, it takes the icon positions from the Windows desktop again, so your icons are not mixed up. While Windows' desktop is in use, turn this on and turn off \"Use Windows' own desktop\". It turns itself off once copied, and replaces the layout the rustyfiles desktop has now."),+ ("Sürücüleri gruplara ayır", "Split the drives into groups"),+ ("Yerel diskler, çıkarılabilir sürücüler (USB, disk) ve ağ sürücüleri ayrı başlıklar altında gösterilir, Bu bilgisayar'daki gibi.", "Local disks, removable drives (USB, discs) and network drives are shown under their own headings, as in This PC."),+ ("Yerel diskler", "Local disks"),+ ("Çıkarılabilir sürücüler", "Removable drives"),+ ("Ağ sürücüleri", "Network drives"),];diff --git a/crates/rf-app/src/settings.rs b/crates/rf-app/src/settings.rsindex 5399681f..16774c84 100644--- a/crates/rf-app/src/settings.rs+++ b/crates/rf-app/src/settings.rs@@ -713,6 +713,9 @@ pub struct Settings {/// Sections of the Home page that are hidden: "quick", "drives", "devices", "tags",/// "network", "recent".pub home_hidden: Vec<String>,+ /// The Home page's drives are three groups, as in This PC: local disks, removable drives (USB, discs) and network drives (off: one list).+ /// A group can be hidden on its own with `home_hidden` ("drives_local", "drives_removable", "drives_network").+ pub home_split_drives: bool,/// "Clear" on Home's recent items: only items used after this moment are listed (Windows'/// own list of recent items is left alone).pub recent_cleared_ms: i64,@@ -1371,6 +1374,7 @@ impl Default for Settings {drive_places: Vec::new(),drive_place_icons: Vec::new(),home_hidden: Vec::new(),+ home_split_drives: false,recent_cleared_ms: 0,search_history: Vec::new(),toolbar_hidden: Vec::new(),diff --git a/crates/rf-app/src/settings_view.rs b/crates/rf-app/src/settings_view.rsindex 9a751a29..d5218f0d 100644--- a/crates/rf-app/src/settings_view.rs+++ b/crates/rf-app/src/settings_view.rs@@ -2677,6 +2677,7 @@ fn appearance(p: &Palette, s: &Settings, cx: &mut App) -> Vec<AnyElement> {}let home_hidden = s.home_hidden.clone();let recent_arrivals = s.recent_arrivals;+ let split_drives = s.home_split_drives;v.push((AppearanceGroup::Home, expander("home-sections",p,@@ -2707,6 +2708,14 @@ fn appearance(p: &Palette, s: &Settings, cx: &mut App) -> Vec<AnyElement> {Some(t!("İndirilenler'e yeni gelen ve bu bilgisayara kopyalanan dosyalar, açılmasalar da listede görünür. Kapalıyken yalnızca açtığınız öğeler.")),switch("hm-recent-arrivals", &pp, recent_arrivals, move |_, cx| settings::update(cx, |s| s.recent_arrivals = !recent_arrivals)),));+ // the drives in groups, as This PC has them, each group on its own switch+ rows.push(sub(&pp, crate::i18n::t("Sürücüleri gruplara ayır"), Some(crate::i18n::t("Yerel diskler, çıkarılabilir sürücüler (USB, disk) ve ağ sürücüleri ayrı başlıklar altında gösterilir, Bu bilgisayar'daki gibi.")), switch("hm-split-drives", &pp, split_drives, move |_, cx| settings::update(cx, |s| s.home_split_drives = !split_drives))));+ if split_drives {+ for (key, id, label) in [("drives_local", "hm-drives-local", "Yerel diskler"), ("drives_removable", "hm-drives-removable", "Çıkarılabilir sürücüler"), ("drives_network", "hm-drives-network", "Ağ sürücüleri")] {+ let on = !home_hidden.iter().any(|h| h == key);+ rows.push(sub(&pp, crate::i18n::t(label), None, switch(id, &pp, on, move |_, cx| settings::update(cx, |s| show_home_section(s, key, !on)))));+ }+ }rows},cx,