microsoft/Terminal

Allow a command line argument for wt that would accept a monitor designation

Open

#15,656 创建于 2023年7月5日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)C++ (3,212 fork)batch import
Area-CommandlineHelp WantedIssue-BugProduct-Terminal

仓库指标

Star
 (35,764 star)
PR 合并指标
 (平均合并 27天 19小时) (30 天内合并 24 个 PR)

描述

Description of the new feature/enhancement

I have not found a way to cause a new invocation of wt to position its window onto the monitor of my choice.

Things I have tried:

  1. Manually drag the wt window to my chosen monitor. Close it and start a new wt instance. Other windows respect the Windows settings (System->Display) 'Remember window locations based on monitor connection'. But the wt window does not appear to honor that.
  2. For 'wt --pos <x,y>', set x and y to various values. This works, but only puts the window on the 'main display' monitor. Note that for giggles, I tried negative numbers and this caused the window to appear on the other(not main) display monitor, but always at position <0,0>.

Proposed technical implementation details (optional)

Suggestions for possible implementation: *) Allow another command line arg, perhaps similar to the Linux '--display'. *) Allow the current <x,y> args of --pos to include an optional monitor number, such as <1:100,100> *) Honor, the 'Remember window locations based on monitor connection' setting. BUT, allow --pos to override that.

贡献者指南