Add functionality to settings `Open JSON file` entry to open the settings.json parent folder in Explorer
#12.382 aperta il 4 feb 2022
Metriche repository
- Star
- (35.764 star)
- Metriche merge PR
- (Merge medio 27g 19h) (24 PR mergiate in 30 g)
Descrizione
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 .

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 editorOpen 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).