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.

Tag view's address bar names the tag; the palette ends a rename

gelenmedyab75488e13cdb
diff --git a/crates/rf-app/src/disk_usage.rs b/crates/rf-app/src/disk_usage.rs
index f4c67650..11eea266 100644
--- a/crates/rf-app/src/disk_usage.rs
+++ b/crates/rf-app/src/disk_usage.rs
@@ -441,8 +441,17 @@ impl Render for DiskUsageView {
.rounded(px(if r.w > 14. && r.h > 14. { 4. } else { 1.5 }))
.overflow_hidden()
.bg(base)
- .when(is_dir && !head && !nested, |d| d.border_1().border_color(p.border))
- .when(lit && !head, |d| d.border_1().border_color(p.text_secondary))
+ // every tile has its 1 px border, clear when it shows none: one added only under the pointer moved the text by a pixel
+ // (a Discord report)
+ .when(!head, |d| {
+ d.border_1().border_color(if lit {
+ p.text_secondary
+ } else if is_dir && !nested {
+ p.border
+ } else {
+ gpui_kit::transparent_black()
+ })
+ })
.cursor_pointer()
.on_hover(cx.listener(move |v, on: &bool, _, cx| {
let want = on.then_some(id);
diff --git a/crates/rf-app/src/workspace.rs b/crates/rf-app/src/workspace.rs
index de11556c..916d48bd 100644
--- a/crates/rf-app/src/workspace.rs
+++ b/crates/rf-app/src/workspace.rs
@@ -2083,6 +2083,10 @@ impl Workspace {
cx.notify();
return;
}
+ // a rename box open under the palette ends: it would keep Escape for itself
+ if self.active_view().read(cx).renaming.is_some() {
+ self.active_view().update(cx, |v, cx| v.cancel_rename(window, cx));
+ }
let folders = match mode {
PaletteMode::Commands { with_folders: false } => Vec::new(),
_ => crate::folder_history::snapshot(),
@@ -3256,6 +3260,10 @@ impl Workspace {
Item::action(t!("Terminalde yönetici olarak aç"), MenuIcon::Lucide(L::ShieldCheck), with(|_, p, _, _| crate::ctx_menu::open_terminal_admin(p))),
]);
}
+ // a drive's disk usage, in a tab of its own (it was offered only on Home: a Discord report)
+ if path.parent().is_none() && !rf_win::localized::is_network(&path) {
+ items.push(Item::action(t!("Disk kullanımını göster"), MenuIcon::Lucide(L::ChartPie), with(|ws, p, w, cx| ws.open_tab(Location::DiskUsage(p), w, cx))));
+ }
// Flatten folder, as in the file list's menu (Discord: looked for in the folder tree too); not for a drive's root
if cx.global::<crate::settings::Settings>().show_flatten && path.parent().is_some() {
items.push(Item::action(
@@ -4243,6 +4251,8 @@ impl Workspace {
crumbs
}
Location::DiskUsage(path) => vec![(crate::disk_usage::title(path), loc.clone())],
+ // the tag's own name, as the tab says it ("Tag: Red"), not the bare word (a Discord report: the address bar said "Tag")
+ Location::Tag(_) => vec![(self.active_tab().read(cx).title(cx), loc.clone())],
other => vec![(crate::i18n::td(&other.title()), other.clone())],
};
// Too long for the address box: hide leading segments after the drive behind "…"