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
Settings: Git status can be turned off; default row and icon sizes
gelenmedya98f171c369d3
diff --git a/crates/rf-app/src/folder_view.rs b/crates/rf-app/src/folder_view.rsindex e702fc58..4cc72f1a 100644--- a/crates/rf-app/src/folder_view.rs+++ b/crates/rf-app/src/folder_view.rs@@ -1667,7 +1667,7 @@ impl FolderView {fn refresh_git(&mut self, cx: &mut Context<Self>) {self.git_last = Some(Instant::now());- let Some(dir) = self.location().path().map(|p| p.to_path_buf()).filter(|_| !self.is_search()) else {+ let Some(dir) = self.location().path().map(|p| p.to_path_buf()).filter(|_| !self.is_search() && cx.global::<crate::settings::Settings>().git_integration) else {self.git = None;return;};@@ -3087,8 +3087,8 @@ impl FolderView {desc: if grid { s.default_sort_desc } else { true },dirs_first: s.folders_first,files_first: !s.folders_first && s.files_first,- row_size: DEFAULT_ROW_SIZE,- grid_size: DEFAULT_GRID_SIZE,+ row_size: s.default_row_size.min(ROW_SIZES.len() as u8 - 1),+ grid_size: s.default_grid_size.min(GRID_SIZES.len() as u8 - 1),group: if grid { crate::settings_view::group_ix(&s.default_group) as u8 } else { 3 },},false,@@ -3106,8 +3106,8 @@ impl FolderView {desc: s.default_sort_desc,dirs_first: s.folders_first,files_first: !s.folders_first && s.files_first,- row_size: DEFAULT_ROW_SIZE,- grid_size: DEFAULT_GRID_SIZE,+ row_size: s.default_row_size.min(ROW_SIZES.len() as u8 - 1),+ grid_size: s.default_grid_size.min(GRID_SIZES.len() as u8 - 1),group: crate::settings_view::group_ix(&s.default_group) as u8,},s.default_view == crate::settings::DefaultView::Adaptive,diff --git a/crates/rf-app/src/i18n_en.rs b/crates/rf-app/src/i18n_en.rsindex 4407081f..5a5fccaf 100644--- a/crates/rf-app/src/i18n_en.rs+++ b/crates/rf-app/src/i18n_en.rs@@ -2331,6 +2331,12 @@ pub const EN: &[(&str, &str)] = &[("Gelen dosyaların klasörünü seçin", "Choose the folder for received files"),("İndirme klasörü", "Download folder"),("İndirmelerin klasörünü seçin", "Choose the folder for downloads"),+ ("Git durumunu göster", "Show Git status"),+ ("Depoların içinde dosyaların Git durumu, adın yanındaki işaret ve commit sütunları; kapalıyken liste için Git hiç çalıştırılmaz", "Files' Git status inside repositories, the mark after a name and the commit columns; when off, Git is never run for the list"),+ ("Varsayılan satır boyutu", "Default row size"),+ ("Kendi düzeni olmayan klasörler Ayrıntılar ve Liste'de bu boyutta açılır", "Folders without a layout of their own open at this size in Details and List"),+ ("Varsayılan simge boyutu", "Default icon size"),+ ("Kendi düzeni olmayan klasörler ızgarada bu boyutta açılır", "Folders without a layout of their own open at this size in the grid"),("Güvenilir cihazlardan sormadan al", "Take files from trusted devices without asking"),("Eşleştirdiğiniz cihazların gönderdikleri doğrudan Gelen dosyalar klasörüne iner; diğer cihazlar her seferinde sorulur.", "Files from devices you paired with go straight to the Received files folder; other devices are asked about every time."),("Yakındaki cihazlar", "Nearby devices"),diff --git a/crates/rf-app/src/settings.rs b/crates/rf-app/src/settings.rsindex 317f643d..b8cb4b84 100644--- a/crates/rf-app/src/settings.rs+++ b/crates/rf-app/src/settings.rs@@ -562,6 +562,10 @@ pub struct Settings {/// UI language (`system` follows the Windows UI language).pub language: Lang,pub default_view: DefaultView,+ /// The size a folder without a layout of its own opens at (Discussion 730): the row size of Details and List, and the tile size+ /// of the grid, as indexes of their size steps (0 the smallest, 4 the largest).+ pub default_row_size: u8,+ pub default_grid_size: u8,pub show_hidden: bool,pub preview_open: bool,/// The preview pane of the Open/Save dialogs, kept apart from the main windows' (shown until it is closed once: issue 87).@@ -963,6 +967,9 @@ pub struct Settings {pub text_editor_path: String,/// The program every Git command runs (another Git, or `wslgit.exe`); empty: `git` from the PATH.pub git_path: String,+ /// Git status in the list (the column, the mark after a name, the commit columns) inside repositories (on). Off: no Git command+ /// is run for the list at all (Discussion 734: a Downloads folder inside a repository showed marks its owner never wanted).+ pub git_integration: bool,// ---- Advancedpub show_flatten: bool,@@ -1194,6 +1201,8 @@ impl Default for Settings {theme: ThemePref::System,language: Lang::System,default_view: DefaultView::Adaptive,+ default_row_size: 1,+ default_grid_size: 2,show_hidden: false,preview_open: true,picker_preview_open: true,@@ -1374,6 +1383,7 @@ impl Default for Settings {terminal_path: String::new(),text_editor_path: String::new(),git_path: String::new(),+ git_integration: true,show_flatten: false,space_quicklook: false,directlook_enabled: true,diff --git a/crates/rf-app/src/settings_view.rs b/crates/rf-app/src/settings_view.rsindex da72308c..8cdde46c 100644--- a/crates/rf-app/src/settings_view.rs+++ b/crates/rf-app/src/settings_view.rs@@ -297,6 +297,11 @@ pub(crate) fn sw(id: &'static str, p: &Palette, on: bool, set: fn(&mut Settings,}/// A button showing the current value; clicking opens the choices in our menu.+/// The five size steps of the list's rows and of the grid's tiles, by name.+fn size_steps() -> Vec<(u8, String)> {+ vec![(0, t!("Çok küçük").into()), (1, t!("Küçük").into()), (2, t!("Orta").into()), (3, t!("Büyük").into()), (4, t!("Çok büyük").into())]+}+pub(crate) fn dropdown<T: Copy + PartialEq + 'static>(id: &'static str, p: &Palette, current: T, options: Vec<(T, String)>, set: fn(&mut Settings, T)) -> AnyElement {let label = options.iter().find(|(v, _)| *v == current).map(|(_, l)| l.clone()).unwrap_or_default();select_box(id, p, label, move |_| {@@ -2549,6 +2554,21 @@ fn layout(p: &Palette, s: &Settings, cx: &mut App) -> Vec<AnyElement> {|s, v| s.default_view = v,),),+ // (Discussion 730: Downloads small in one pane, a new archive opened big in the other)+ card(+ p,+ L::Rows3,+ t!("Varsayılan satır boyutu"),+ Some(t!("Kendi düzeni olmayan klasörler Ayrıntılar ve Liste'de bu boyutta açılır")),+ dropdown("default-row-size", p, s.default_row_size, size_steps(), |s, v| s.default_row_size = v),+ ),+ card(+ p,+ L::LayoutGrid,+ t!("Varsayılan simge boyutu"),+ Some(t!("Kendi düzeni olmayan klasörler ızgarada bu boyutta açılır")),+ dropdown("default-grid-size", p, s.default_grid_size, size_steps(), |s, v| s.default_grid_size = v),+ ),section(p, t!("Sıralama ve gruplama")),card(p,@@ -3289,6 +3309,13 @@ fn dev(p: &Palette, s: &Settings, cx: &mut App) -> Vec<AnyElement> {),terminal_card(p, s),text_editor_card(p, s, &editors),+ card(+ p,+ L::GitCompare,+ t!("Git durumunu göster"),+ Some(t!("Depoların içinde dosyaların Git durumu, adın yanındaki işaret ve commit sütunları; kapalıyken liste için Git hiç çalıştırılmaz")),+ sw("git-integration", p, s.git_integration, |s, v| s.git_integration = v),+ ),git_card(p, s, cx),]}