Add right-click context menu to open settings folder in Explorer#20439
Add right-click context menu to open settings folder in Explorer#20439smz202000 wants to merge 1 commit into
Conversation
…s folder This change adds a right-click context menu to the 'Open JSON file' button in the Settings UI, allowing users to open the parent folder of the settings.json file in File Explorer. The backend support for SettingsTarget::Directory was already implemented in _LaunchSettings. This change simply adds the UI to trigger it via a ContextFlyout on the OpenJsonNavItem. Closes microsoft#12382
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
@smz202000 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
1 similar comment
|
@smz202000 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
Summary of the Pull Request
Adds a right-click context menu to the "Open JSON file" button in the Settings UI. When right-clicked, it shows a menu item "Open settings folder" that opens the parent folder of the settings.json file in File Explorer.
References
Closes #12382
Detailed Description
The backend support for
SettingsTarget::Directorywas already fully implemented inTerminalPage::_LaunchSettings— it callsopenFolder()withCascadiaSettings::SettingsDirectory(). This change simply adds the UI to trigger it:MainPage.xaml: Added a
ContextFlyoutwith aMenuFlyoutItemto theOpenJsonNavItem. The flyout appears on right-click and includes a folder icon (Segoe Fluent Icons glyph).MainPage.h: Added declaration for the
OpenSettingsFolder_Clickclick handler.MainPage.cpp: Added implementation of
OpenSettingsFolder_Clickwhich emits theOpenJsonevent withSettingsTarget::Directory, reusing the existing event pipeline.Resources/en-US/Resources.resw: Added localized string
Nav_OpenSettingsFolder.Textwith value "Open settings folder".PR Checklist
Open JSON fileentry to open the settings.json parent folder in Explorer #12382