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.

Win+E without the Dock follows the new-window setting

gelenmedyae6f08883be40
diff --git a/crates/rf-app/src/shell/keylayer.rs b/crates/rf-app/src/shell/keylayer.rs
index b80eb753..122b358e 100644
--- a/crates/rf-app/src/shell/keylayer.rs
+++ b/crates/rf-app/src/shell/keylayer.rs
@@ -250,6 +250,13 @@ impl Actions for GpuiActions<'_> {
// places do (the running rustyfiles takes it, none running starts one; "This PC" is a place we show ourselves, so this never
// goes to Explorer)
if ROLE.get() == Some(&Role::Main) {
+ // With Settings › "Open folders from other programs in a new window" off, a window that is open takes it as a tab, as it
+ // does when the dock hands Win+E over: the same way in, so the setting holds whichever process caught the key (it was
+ // a new window every time here).
+ if !self.cx.global::<crate::settings::Settings>().launch_in_new_window {
+ crate::workspace::route_ipc_shown("shell:MyComputerFolder".to_string(), self.cx);
+ return;
+ }
// (in front: this program is not the one in front when the key comes, issue 367)
if let Some(rf_win::switcher::activate::Outcome::Flashed) = crate::open_main_window_in_front(None, self.cx) {
log::info!("win+e: Windows would not let the new window come to the front; its taskbar button flashes");