-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Closed
Labels
Area-Commandlinewt.exe's commandline argumentswt.exe's commandline argumentsIssue-QuestionFor questions or discussionFor questions or discussionProduct-TerminalThe new Windows Terminal.The new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.Fix is checked in, but it might be 3-4 weeks until a release.
Milestone
Description
I'm submitting this one for discussion - I don't think this deserves a spec, but maybe some discussion.
#5464 covers "Add support for focus-pane subcommand". That particular subcommand is tricky, because we'd need to have IDs for Panes, and then that gets into all sorts of discussion like should the ID be for the pane, or the TermControl?.
Since that's hard, I thought I might do something easy like move-focus, which is just the moveFocus action, turned into a wt subcommand. This comes with two caveats:
- It would be subject to the same bug that
moveFocusis, Use visual layout for moveFocusX target #2398. - It would behave non-deterministically with
autosplits. The commandline might behave differently if a pane splits in a different direction due to a different initial window size. Official guidance would probably be "make sure to specify the split direction for allsplit-panecommands if you're usingmove-focus".
@microsoft/windows-console-team Are we okay with shipping this command with the above caveats?
I'm thinking the command is just
move-focus [direction]
wheredirectionis one ofleft,right,up,down.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-Commandlinewt.exe's commandline argumentswt.exe's commandline argumentsIssue-QuestionFor questions or discussionFor questions or discussionProduct-TerminalThe new Windows Terminal.The new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.Fix is checked in, but it might be 3-4 weeks until a release.