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

Command line option to override alwaysOnTop #15375

Open
vefatica opened this issue May 17, 2023 · 8 comments
Open

Command line option to override alwaysOnTop #15375

vefatica opened this issue May 17, 2023 · 8 comments
Labels
Area-Commandline wt.exe's commandline arguments Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal.
Milestone

Comments

@vefatica
Copy link

Is there a way to override these (maybe even others) when creating a new window?

-w -1 -M and -w -1 -F are limited versions of what I want to do.

I've read a few (old) threads on specifying a settings file on the command line (valid only if creating a new window). That would seem to be the most robust way to override anything and I'm surprised it hasn't been implemented.

Another thought (hardly well thought-out) ... allow (possibly multiple) command line options like
--option (-o) global_option_name value, again only for new windows.

@microsoft-github-policy-service microsoft-github-policy-service bot 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 17, 2023
@DHowett
Copy link
Member

DHowett commented May 17, 2023

You know, I dunno if we've ever given thought to something like --option. That's an interesting thought!

Right now, we have --pos and --size. --pos is measured in pixels from the top left of the primary display and --size is measured in characters (columns x rows).

For example, wt -w -1 --pos 0,0 --size 80,25 will create an 80x25 character window in the top left of the primary display.

FWIW, these are all listed in wt --help.

@zadjii-msft
Copy link
Member

I'm almost POSITIVE I had this in a thread or card or note somewhere. https://github.com/microsoft/terminal/projects/5#card-50760344 specifically mentions:

  • Needs 14 to be able to specify the location of the new window.

And I can't find 14 anywhere....


wait tho

@vefatica
Copy link
Author

Thanks, that's great. I have WindowsTerminalPreview: 1.17.10234.0; --pos and --size work but I don't see them in wt --help or on this page.

@zadjii-msft
Copy link
Member

Are you sure wt.exe is pointing at 1.17?
image
image

@vefatica
Copy link
Author

Oops! I also have WindowsTerminal: 1.16.10261.0 (both unpackaged) and that's where wt.exe points (via AppPaths). Had I issued wtp --help I would have seen it. And I reckon it doesn't make it to the web page until it appears in a release version.

@zadjii-msft
Copy link
Member

@vefatica
Copy link
Author

I wish I could do the same for alwaysOnTop.

I'm not crazy about devenv's "terminal". I have a lot of room in devenv and could easily tuck a small stay_on_top WT into a corner ... start it as an external tool. You can consider that a request ... alwaysOnTop command line option.

Will that URL (preview's command line options) remain constant from version to version?

@carlos-zamora carlos-zamora added Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Product-Terminal The new Windows Terminal. Area-Commandline wt.exe's commandline arguments and removed 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 17, 2023
@carlos-zamora carlos-zamora changed the title Command line option to override initialRows ... initialColumns ... initialSize? Command line option to override alwaysOnTop May 17, 2023
@carlos-zamora carlos-zamora added this to the Backlog milestone May 17, 2023
@carlos-zamora carlos-zamora added Issue-Task It's a feature request, but it doesn't really need a major design. and removed Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. labels May 17, 2023
@zadjii-msft
Copy link
Member

Will that URL (preview's command line options) remain constant from version to version

Sure should.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Commandline wt.exe's commandline arguments Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal.
Projects
Status: Should be written
Development

No branches or pull requests

4 participants