-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Add functionality to settings Open JSON file
entry to open the settings.json parent folder in Explorer
#12382
Comments
Open JSON file
entry to open the settings.json parent folder in Explorer
This is a clever idea. Other ideas to build on this: We change the button at the bottom of the nav view to a "More options" button with a flyout, and in there, stick:
|
@zadjii-msft I'll give this a punt if thats okay. Would need some pointers, particularly surrounding how the UI works! |
@Swinkid sorry I lost that in my inbox! Okay, here's some thoughts:
The "Open JSON File" button is defined here: terminal/src/cascadia/TerminalSettingsEditor/MainPage.xaml Lines 156 to 166 in fc90045
I think it'd be easy to add a context menu flyout to it. Probably something like <NavigationViewItem.ContextFlyout>
<MenuFlyoutItem></MenuFlyoutItem>
</NavigationViewItem.ContextFlyout> To set the It might be harder to change that button to like, a split button. But OP did say it was okay to implement this as a right-click context menu. As far as what the button should actually do - So I'd:
|
Created a PR for this issue! Take a look here: #15417 |
@zadjii-msft for #15417, would setting the text through resources be necessary? I've still not worked out why it's not working. |
The resources kinda are, actually. They're used for localization purposes, so only the That's pretty much entirely keyed off the |
@AbdullahAlmanei and @Swinkid are any of you working on this or is this up for grabs? |
Go ahead! |
Hello, I noticed that this issue has a stale PR(#15417) that is almost a year old. In the PR it seems like a diferent solution was proposed and still needs to be done. Should the solution be based on what was discussed in #15417, or is the proposed solution in this thread still relevant? I would like to submit my own PR and want to know what direction I should be going in. |
Description of the new feature/enhancement
(this is a follow up to this issue #1460)
I have Windows Terminal latest stable, v1.12.10334.0 , on win11.
Currently, in the dropdown menu | 'Settings', there's an
Open JSON file
entry, clicking which opens the settings.json file only if the user has associated the .json file type with an installed editor, otherwise it shows the "Do you want to open this file?" windows dialog .screen capture:
If you close the dialog, in order to manage to open the settings.json file manually, you'll have to look in the project wiki FAQ to find its location/path - there's no related info shown inside the app.
So, my suggestion is add functionality to "Open JSON file" settings entry to open the settings.json parent folder in Explorer.
Proposed technical implementation details (optional)
In details, my suggestion is, when clicking the
Open JSON file
entry, instead of attempting to open settings.json with the associated editor, to display a menu with two entries:Open settings.json with associated editor
Open parent folder of settings.json in Explorer
(in order to be able to open it manually).Or, alternatively/more simply, keep the current behavior (=attempt to open the file with the associated editor when leftclicking the "Open JSON file" entry), but when rightclicking it, to open its parent folder in file explorer (and update the entry
tooltip
respectively).The text was updated successfully, but these errors were encountered: