Skip to content
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

settings.json - where it is located? #5732

Closed
eliassal opened this issue May 4, 2020 · 7 comments
Closed

settings.json - where it is located? #5732

eliassal opened this issue May 4, 2020 · 7 comments
Labels
Area-Settings Issues related to settings and customizability, for console or terminal Issue-Docs It's a documentation issue that really should be on MicrosoftDocs/Console-Docs Issue-Question For questions or discussion Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Product-Terminal The new Windows Terminal. Resolution-Answered Related to questions that have been answered

Comments

@eliassal
Copy link

eliassal commented May 4, 2020

Can you please tell where is the settings.json file in the system?
In the doc, you indicated all possible config but nowhere the location of this file
Thanks

@eliassal eliassal added the Issue-Docs It's a documentation issue that really should be on MicrosoftDocs/Console-Docs label May 4, 2020
@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels May 4, 2020
@nandesu
Copy link

nandesu commented May 4, 2020

AppData/Local/Packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe/LocalState/settings.json

@eliassal
Copy link
Author

eliassal commented May 4, 2020

Thanks, I found it and was able to customize it. However, ion hamsleman blog
https://www.hanselman.com/blog/ItsTimeForYouToInstallWindowsTerminal.aspx
I see that he is using "split" to have 3 different panes, 1 with PS, one with cmd, a 3rd with ubuntu...

I kept my settings as the default

{ "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" }

pressing "alt+shift+d", it duplicates with the same thing if PS then it is PS it cmd then it is cmd, is this correct?

@zadjii-msft
Copy link
Member

@nandesu is absolutely correct. For a "more complete" path, it's under

C:\Users\<your username>\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json

So for me, with my PC's user being migrie, the path is:

C:\Users\migrie\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json

@zadjii-msft
Copy link
Member

pressing "alt+shift+d", it duplicates with the same thing if PS then it is PS it cmd then it is cmd, is this correct?

It duplicates whichever profile was used to launch the currently focused pane. So if you open the PowerShell profile, then run cmd in that pane, then try to duplicate it, it will run another PowerShell instance (without the child cmd.exe).

@zadjii-msft zadjii-msft added Area-Settings Issues related to settings and customizability, for console or terminal Issue-Question For questions or discussion Product-Terminal The new Windows Terminal. Resolution-Answered Related to questions that have been answered labels May 4, 2020
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label May 4, 2020
@eliassal
Copy link
Author

eliassal commented May 4, 2020

Yes correct, if PS it opens PS. However, is it possible to reorganize the panes?
Also, do you think that it will be possible to add a new feature is that you control which profile when doing "alt+shift+d"?

@zadjii-msft
Copy link
Member

There's answers to a ton of panes questions in #1000, so in general I'll direct your attention there.

Regarding:

do you think that it will be possible to add a new feature is that you control which profile when doing "alt+shift+d"?

This was added in #3825. From that PR:

With this PR, you can make bindings like the following:

{ "keys": ["ctrl+a"], "command": { "action": "splitPane", "split": "vertical" } },
{ "keys": ["ctrl+b"], "command": { "action": "splitPane", "split": "vertical", "profile": "{6239a42c-1111-49a3-80bd-e8fdd045185c}" } },
{ "keys": ["ctrl+c"], "command": { "action": "splitPane", "split": "vertical", "profile": "profile1" } },
{ "keys": ["ctrl+d"], "command": { "action": "splitPane", "split": "vertical", "profile": "profile2" } },
{ "keys": ["ctrl+e"], "command": { "action": "splitPane", "split": "horizontal", "commandline": "foo.exe" } },
{ "keys": ["ctrl+f"], "command": { "action": "splitPane", "split": "horizontal", "profile": "profile1", "commandline": "foo.exe" } },
{ "keys": ["ctrl+g"], "command": { "action": "newTab" } },
{ "keys": ["ctrl+h"], "command": { "action": "newTab", "startingDirectory": "c:\\foo" } },
{ "keys": ["ctrl+i"], "command": { "action": "newTab", "profile": "profile2", "startingDirectory": "c:\\foo" } },
{ "keys": ["ctrl+j"], "command": { "action": "newTab", "tabTitle": "bar" } },
{ "keys": ["ctrl+k"], "command": { "action": "newTab", "profile": "profile2", "tabTitle": "bar" } },
{ "keys": ["ctrl+l"], "command": { "action": "newTab", "profile": "profile1", "tabTitle": "bar", "startingDirectory": "c:\\foo", "commandline":"foo.exe" } }

@eliassal
Copy link
Author

eliassal commented May 4, 2020

Fantastic zadijii, it works like a charm, keep the good efforts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Settings Issues related to settings and customizability, for console or terminal Issue-Docs It's a documentation issue that really should be on MicrosoftDocs/Console-Docs Issue-Question For questions or discussion Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Product-Terminal The new Windows Terminal. Resolution-Answered Related to questions that have been answered
Projects
None yet
Development

No branches or pull requests

3 participants