microsoft / terminal

The new Windows Terminal and the original Windows console host, all in the same place!
MIT License
94.75k stars 8.2k forks source link

command line option to launch new windows in zen mode #17558

Closed RalfReddings closed 1 month ago

RalfReddings commented 1 month ago

Please provide a command line option to launch new windows in Focus mode.

As well as the ability to specify it per profile in the profiles settings but short of that, then a command line switch/option to use with wt.exe please!

Currently every time I launch a window, straight after, I have to use a long keyboard shortcut/command pallete to go into focus mode, which is not ideal.

TheFocus mode section of the "Windows Terminal tips and tricks" article, explains that its possible to get windows terminal to force every new window into focus mode:

To set focus mode to launch every time you start Windows Terminal, open the Settings (Ctrl + ,) and select the Startup tab. Under Launch mode, select Focus (or Maximized focus, which is focus mode with your terminal window maximized). Select Save before exiting. The next time you launch the Windows Terminal, it will open up in focus mode

But going into the settings panel, I dont see this option at all: 500

I am on 1.19.-preview

DHowett commented 1 month ago

Thanks for pointing this out! It’s in “launch parameters” at the bottom.

zadjii-msft commented 1 month ago

Pretty sure you can already

wt --focus

To launch into focus mode. IIRC I think that only applies to new windows (wt -w 0 --focus won't change the current window into focus mode)

https://learn.microsoft.com/en-us/windows/terminal/command-line-arguments?tabs=windows#options-and-commands

microsoft-github-policy-service[bot] commented 1 month ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.