move-focus doesn't work after splitting #13491

Closed
opened 2026-01-31 03:44:07 +00:00 by claunia · 3 comments
Owner

Originally created by @Jackenmen on GitHub (Apr 16, 2021).

Windows Terminal version (or Windows build number)

10.0.19041.867, 1.7.1033.0

Other Software

No response

Steps to reproduce

  1. Open new tab without any split panes in Windows Terminal
  2. Run this command in the tab:
wt sp -V cmd /C "echo hello && pause" ; mf left
  1. Observe

Expected Behavior

I expected a split pane to be created and a focus to still remain on the previously focused pane:
image

Actual Behavior

The split pane was created but a focus switched to the new pane:
image

Originally created by @Jackenmen on GitHub (Apr 16, 2021). ### Windows Terminal version (or Windows build number) 10.0.19041.867, 1.7.1033.0 ### Other Software _No response_ ### Steps to reproduce 1. Open new tab without any split panes in Windows Terminal 2. Run this command in the tab: ``` wt sp -V cmd /C "echo hello && pause" ; mf left ``` 3. Observe ### Expected Behavior I expected a split pane to be created and a focus to still remain on the previously focused pane: ![image](https://user-images.githubusercontent.com/6032823/115040330-9b8d1500-9ed1-11eb-87c3-d54acc7b07ae.png) ### Actual Behavior The split pane *was created* but a focus switched to the new pane: ![image](https://user-images.githubusercontent.com/6032823/115041476-d6dc1380-9ed2-11eb-92db-2f5d76efbf9d.png)
claunia added the Resolution-Duplicate label 2026-01-31 03:44:07 +00:00
Author
Owner

@Jackenmen commented on GitHub (Apr 16, 2021):

A clever workaround for this is to run a wt mf left command inside the new pane like this:

wt sp -V cmd /C "wt mf left && echo hello && pause"
@Jackenmen commented on GitHub (Apr 16, 2021): A clever workaround for this is to run a `wt mf left` command *inside* the new pane like this: ``` wt sp -V cmd /C "wt mf left && echo hello && pause" ```
Author
Owner

@zadjii-msft commented on GitHub (Apr 16, 2021):

Weirdly enough, this is tracked in #6586. move-focus works great during the startup, while the commands are being processed, but unfortunately focus still gets yeeted at one of the panes randomly once startup is finished 😞

/dup #6586

@zadjii-msft commented on GitHub (Apr 16, 2021): Weirdly enough, this is tracked in #6586. `move-focus` works great _during_ the startup, while the commands are being processed, but unfortunately focus still gets yeeted at one of the panes randomly once startup is finished 😞 /dup #6586
Author
Owner

@ghost commented on GitHub (Apr 16, 2021):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Apr 16, 2021): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13491