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.

Dual pane: show both panes' folders in the tab title (issue 915) Co-authored-by: openhands <[email protected]>

openhandsf7d7d4ada974
diff --git a/.agent-screenshots/dual-pane-tab-off.png b/.agent-screenshots/dual-pane-tab-off.png
new file mode 100644
index 00000000..8c6b1a65
Binary files /dev/null and b/.agent-screenshots/dual-pane-tab-off.png differ
diff --git a/.agent-screenshots/dual-pane-tab-on.png b/.agent-screenshots/dual-pane-tab-on.png
new file mode 100644
index 00000000..f84dbb81
Binary files /dev/null and b/.agent-screenshots/dual-pane-tab-on.png differ
diff --git a/.agent-screenshots/tab-strip-off.png b/.agent-screenshots/tab-strip-off.png
new file mode 100644
index 00000000..e6c164a3
Binary files /dev/null and b/.agent-screenshots/tab-strip-off.png differ
diff --git a/.agent-screenshots/tab-strip-on.png b/.agent-screenshots/tab-strip-on.png
new file mode 100644
index 00000000..a4b2877c
Binary files /dev/null and b/.agent-screenshots/tab-strip-on.png differ
diff --git a/crates/rf-app/locales/_source.json b/crates/rf-app/locales/_source.json
index 77538a75..d3dd2353 100644
--- a/crates/rf-app/locales/_source.json
+++ b/crates/rf-app/locales/_source.json
@@ -15207,5 +15207,17 @@
"key": "Liste düzeninde de küçük resim göster",
"tr": "Liste düzeninde de küçük resim göster",
"en": "Show thumbnails in the List layout too"
+ },
+ {
+ "id": "1c183f80",
+ "key": "Çift bölmede sekmede iki bölmenin klasörü",
+ "tr": "Çift bölmede sekmede iki bölmenin klasörü",
+ "en": "Dual pane: both panes' folders on the tab"
+ },
+ {
+ "id": "ba109e13",
+ "key": "Çift bölmeli sekme başlığında her iki bölmenin klasörünü gösterir (sol bölme önce); etkin bölmenin kısımı vurgulanır",
+ "tr": "Çift bölmeli sekme başlığında her iki bölmenin klasörünü gösterir (sol bölme önce); etkin bölmenin kısımı vurgulanır",
+ "en": "A dual-pane tab shows both panes' folders in its title, left pane first; the focused pane's part is highlighted"
}
]
\ No newline at end of file
diff --git a/crates/rf-app/src/i18n_en.rs b/crates/rf-app/src/i18n_en.rs
index 3e20e189..4185d4c2 100644
--- a/crates/rf-app/src/i18n_en.rs
+++ b/crates/rf-app/src/i18n_en.rs
@@ -2421,6 +2421,8 @@ pub const EN: &[(&str, &str)] = &[
("gönderildi", "uploaded"),
("Çift bölmede her bölmenin yolu", "Each pane's path in dual pane"),
("Her bölmenin üstünde kendi klasörünün yolu durur; adres çubuğu yalnızca etkin bölmeninkini gösterir", "Each pane shows its own folder's path above it; the address bar shows only the active pane's"),
+ ("Çift bölmede sekmede iki bölmenin klasörü", "Dual pane: both panes' folders on the tab"),
+ ("Çift bölmeli sekme başlığında her iki bölmenin klasörünü gösterir (sol bölme önce); etkin bölmenin kısımı vurgulanır", "A dual-pane tab shows both panes' folders in its title, left pane first; the focused pane's part is highlighted"),
("Bu sürücü BitLocker ile kilitli. Kilidini açmak için Windows'un parola penceresi açıldı.", "This drive is locked by BitLocker. Windows' password window opened to unlock it."),
("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"),
diff --git a/crates/rf-app/src/settings.rs b/crates/rf-app/src/settings.rs
index 07a39eb2..9e29bf77 100644
--- a/crates/rf-app/src/settings.rs
+++ b/crates/rf-app/src/settings.rs
@@ -882,6 +882,10 @@ pub struct Settings {
/// In dual pane, each pane shows its own folder's path above it (on): the address bar shows only the active pane's, and to see
/// where the other one is one had to switch to it (Discussion 732).
pub dual_pane_paths: bool,
+ /// A dual-pane tab shows both panes' folders in its title, left pane first ("ebooks | Children of Time"), instead of only the
+ /// focused pane's (issue 915). Works together with `tab_shows_path`: then both panes' paths are shown, cut at the end.
+ /// The focused pane's part is highlighted, so the title still tells which pane is active.
+ pub dual_pane_tab_titles: bool,
/// The share of the tab the first pane takes (the left one, or the upper one when stacked): the divider between the two panes is
/// dragged (issue 284: "I kept trying to drag the middle divider, but I cannot"). 0.5 is the middle.
pub dual_pane_split: f32,
@@ -1460,6 +1464,7 @@ impl Default for Settings {
dual_pane_new_tabs: false,
dual_pane_vertical: true,
dual_pane_paths: true,
+ dual_pane_tab_titles: false,
dual_pane_split: 0.5,
menu: MenuPrefs::default(),
smooth_scroll: true,
diff --git a/crates/rf-app/src/settings_view.rs b/crates/rf-app/src/settings_view.rs
index 9cfb9259..d2c0732f 100644
--- a/crates/rf-app/src/settings_view.rs
+++ b/crates/rf-app/src/settings_view.rs
@@ -1270,6 +1270,13 @@ fn general(p: &Palette, s: &Settings, cx: &mut App) -> Vec<AnyElement> {
Some(t!("Her bölmenin üstünde kendi klasörünün yolu durur; adres çubuğu yalnızca etkin bölmeninkini gösterir")),
sw("dual-paths", p, s.dual_pane_paths, |s, v| s.dual_pane_paths = v),
));
+ v.push(card(
+ p,
+ L::Columns2,
+ t!("Çift bölmede sekmede iki bölmenin klasörü"),
+ Some(t!("Çift bölmeli sekme başlığında her iki bölmenin klasörünü gösterir (sol bölme önce); etkin bölmenin kısımı vurgulanır")),
+ sw("dual-tab-titles", p, s.dual_pane_tab_titles, |s, v| s.dual_pane_tab_titles = v),
+ ));
v.push(card(
p,
L::SquareSplitHorizontal,
diff --git a/crates/rf-app/src/workspace.rs b/crates/rf-app/src/workspace.rs
index 39566e10..740560bd 100644
--- a/crates/rf-app/src/workspace.rs
+++ b/crates/rf-app/src/workspace.rs
@@ -2752,6 +2752,8 @@ impl Workspace {
let tab_terminal = cx.global::<crate::settings::Settings>().tab_terminal_button;
// Settings > Appearance > "The folder's path on tabs" (issue 162: "show whatever number of characters it can on the tab")
let tab_path = cx.global::<crate::settings::Settings>().tab_shows_path;
+ // Settings > Appearance > "Dual pane: both panes' folders on the tab" (issue 915)
+ let dual_tab_titles = cx.global::<crate::settings::Settings>().dual_pane_tab_titles;
let (name_px, name_style) = (rems(0.875).to_pixels(window.rem_size()), window.text_style());
let roomy = fit_names || tab_w >= 110.;
let close_buttons = cx.global::<crate::settings::Settings>().tab_close_buttons;
@@ -2781,8 +2783,22 @@ impl Workspace {
let windows_home_tab = windows_theme && matches!(&location, Location::Home);
let term_dir = tab_terminal.then(|| tab_terminal_dir(&location)).flatten();
let path_title: Option<SharedString> = tab_dir.as_ref().filter(|_| tab_path).map(|d| d.display().to_string().into());
- let shown: SharedString = path_title.clone().unwrap_or_else(|| title.clone().into());
- let hint: Option<SharedString> = hints.get(i).cloned().flatten().filter(|_| path_title.is_none()).map(|h| format!("@{h}").into());
+ // A dual-pane tab shows both panes' folders, left pane first ("ebooks | Children of Time"), instead of only the focused
+ // pane's (issue 915). With "the folder's path on tabs" on, both panes' paths are shown, cut at the end.
+ let dual_parts: Option<(SharedString, SharedString, bool)> = tab.right.as_ref().filter(|_| dual_tab_titles).map(|right| {
+ let pane_title = |v: &FolderView| -> SharedString {
+ if let Some(dir) = v.location().path().filter(|_| tab_path) {
+ return dir.display().to_string().into();
+ }
+ v.title(cx).into()
+ };
+ (pane_title(tab.left.read(cx)), pane_title(right.read(cx)), tab.right_active)
+ });
+ let hint: Option<SharedString> = hints.get(i).cloned().flatten().filter(|_| path_title.is_none() && dual_parts.is_none()).map(|h| format!("@{h}").into());
+ let shown: SharedString = match &dual_parts {
+ Some((l, r, _)) => format!("{l} | {r}").into(),
+ None => path_title.clone().unwrap_or_else(|| title.clone().into()),
+ };
let tab_w = if fit_names {
let measured = match &hint {
Some(h) => format!("{shown} {h}"),
@@ -2858,7 +2874,20 @@ impl Workspace {
.child(div().min_w_0().flex_shrink_0().max_w(relative(0.7)).overflow_hidden().text_ellipsis().child(shown.clone()))
.child(div().min_w_0().overflow_hidden().text_ellipsis().text_color(p.text_tertiary).child(h)),
),
- None => d.child(shown.clone()),
+ // both panes' folders, left pane first (issue 915): the focused pane's part keeps the tab's own colour,
+ // the other one is lighter, so the title still tells which pane is active
+ None => match dual_parts.clone() {
+ Some((l, r, right_active)) => d.child(
+ h_flex()
+ .min_w_0()
+ .flex_1()
+ .gap_1()
+ .child(div().min_w_0().flex_1().overflow_hidden().text_ellipsis().when(right_active, |d| d.text_color(p.text_tertiary)).child(l))
+ .child(div().flex_shrink_0().text_color(p.text_tertiary).child("|"))
+ .child(div().min_w_0().flex_1().overflow_hidden().text_ellipsis().when(!right_active, |d| d.text_color(p.text_tertiary)).child(r)),
+ ),
+ None => d.child(shown.clone()),
+ },
}),
)
// the folder's whole path on hover (issue 162: "I am unable to see a way to see the full path on tabs")