Skip to content

Feature: Added an action to toggle dual pane mode #17401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 4, 2025
Merged

Conversation

yaira2
Copy link
Member

@yaira2 yaira2 commented Aug 4, 2025

Resolved / Related Issues

To prevent extra work, all changes to the Files codebase must link to an approved issue marked as Ready to build. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.

Steps used to test these changes

Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.

  1. Assigned a keyboard shortcut to the 'Toggle dual pane mode' action
  2. Confirmed that it adds second pane when dual pane is off
  3. Confirmed that it closes the non-active pane when dual pane is on
  4. Confirmed that the pane arrangement follows the default in settings

@yaira2
Copy link
Member Author

yaira2 commented Aug 4, 2025

Fyi @SilverGreen93

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new action to toggle dual pane mode in the Files application, allowing users to easily switch between single and dual pane layouts.

Key changes:

  • Added ToggleDualPaneAction that enables/disables dual pane mode based on current state
  • Implemented CloseOtherPane() method to close the non-active pane when toggling off
  • Integrated the new command into the command management system

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Files.App/Actions/Show/ToggleDualPaneAction.cs New action class implementing toggle functionality for dual pane mode
src/Files.App/Views/ShellPanesPage.xaml.cs Added CloseOtherPane() method to close the non-active pane
src/Files.App/Data/Contracts/IShellPanesPage.cs Added interface definition for CloseOtherPane() method
src/Files.App/Data/Commands/Manager/CommandManager.cs Registered the new toggle dual pane command
src/Files.App/Data/Commands/Manager/ICommandManager.cs Added property for the toggle dual pane command
src/Files.App/Data/Commands/Manager/CommandCodes.cs Added command code enum value for toggle dual pane
src/Files.App/Strings/en-US/Resources.resw Added localized strings for the new action

@yaira2 yaira2 added ready to merge Pull requests that are approved and ready to merge and removed needs - code review labels Aug 4, 2025
@yaira2 yaira2 changed the title Feature: Added action to toggle dual pane mode Feature: Added an action to toggle dual pane mode Aug 4, 2025
@yaira2 yaira2 merged commit d701493 into main Aug 4, 2025
8 checks passed
@yaira2 yaira2 deleted the ya/ToggleDualPane branch August 4, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Add action to toggle between having a second pane and not
1 participant