gpduck / MSTerminalSettings

MIT License
118 stars 15 forks source link

Feature: Detect Running Terminal #46

Closed JustinGrote closed 4 years ago

JustinGrote commented 4 years ago

This adds the ability to automatically detect the currently running Windows Terminal.

This is an imperfect process until a programmatic method for correlating WT_SESSION to a profile can be found.

This is used to implicity run Invoke-TerminalGif in the "current" tab, however it could be incorporated to the other commands as well either via a -Current switch parameter, or done implicity for get-msterminalsetting and set-msterminalsetting (potentially breaking change as some programs may rely on no switches getting "all" input), so the -Current switch parameter is recommended unless this should be the default behavior and instead have a -All switch to return everything.

JustinGrote commented 4 years ago

@gpduck This one is ready for you too. Thanks!

JustinGrote commented 4 years ago

Advanced Implementation pending https://github.com/microsoft/terminal/issues/3589. This pull request can be merged for now and that will be implemented once available.