Files icon indicating copy to clipboard operation
Files copied to clipboard

Feature: Switch to single instance with multi-windowing support

Open heftymouse opened this issue 1 year ago • 5 comments

What feature or improvement do you think would benefit Files?

Currently, each instance of Files only supports a single main window (in App.Window), and tab tear-off is implemented by starting a new instance through URI activation. Allowing multiple windows will make this faster and more lightweight and opens the door to having only one instance of Files running at a time (like explorer).

Requirements

  • This proposal will allow a single app instance to have multiple main windows.

Files Version

2.5.1.0

Windows Version

10.0.25387.1200

Comments

This will be a very large effort

heftymouse avatar Jun 22 '23 13:06 heftymouse

@heftymouse is this something you looked into? It might be worth identifying what it'll involve and what challenges we can expect to encounter.

yaira2 avatar Aug 30 '23 22:08 yaira2

@heftymouse is this something you looked into? It might be worth identifying what it'll involve and what challenges we can expect to encounter.

It'll require refactoring anything that requires access to the current window like dialogs and file pickers. I have some idea of how to implement this using a service scope for each tab's dialog/file picker service. However it'll be a challenge to make that work in a clean way, since XAML doesn't have a good way to pass data to distant children.

heftymouse avatar Aug 31 '23 06:08 heftymouse

Blocker: microsoft/microsoft-ui-xaml#7282 It's apparently being worked on for 1.5 according to this, we'll see if anything comes out of it

heftymouse avatar Oct 14 '23 07:10 heftymouse

Can we workaround by using Binding?

yaira2 avatar Nov 05 '23 22:11 yaira2

Even if we could, it certainly wouldn't be worth it

heftymouse avatar Nov 06 '23 06:11 heftymouse