Windows terminal, split panes but the new pane is on the same directory as the previous?
Asked Answered
C

4

12

Might be a little bit of a silly question. The problem is simple, I tend to have two panes, one where I write code, and the other to compile it. I do that with the windows terminal (cmd + vim + Mingw), but something is bothering me. I can split the panes perfectly but after that I have to change directory to the project directory on both panes.. it is really a minor annoyance, but would it be possible for, when I split panes, the second pane going going directly to the directory of the first?

if it's silly, I'm really sorry

Conquest answered 4/8, 2020 at 16:0 Comment(1)
For future reference, here is the MS link explaining this. learn.microsoft.com/en-us/windows/terminal/tutorials/…Valina
R
3

I know you probably have found a way by this time but the shortcut to open a new pane in the same directory for Windows terminal is Shift+Alt+D.

You can view the image here: pane-split

Retarded answered 15/3, 2024 at 5:2 Comment(1)
Well I don't use windows anymore, but that does sound like what I needed at the time, thank you very much :) Hope it might be useful for someone in the futureConquest
C
9

If you're still interested in this, it looks like it will be added to Windows Terminal soon.

In the interim, I use tmux to workaround this issue.

Cygnus answered 12/1, 2021 at 22:51 Comment(2)
Thanks for linking that thread and suggesting tmux. I do have a somewhat speculative question though: are you sure that it will be? They removed the "In-PR" tag ("in production", I assume), so it could be 'done', but the issue hasn't been closed, and they removed that tag a month ago.Gag
I think it's a feature that will always be of interest to me! I have since moved to emacs tho.. so I am not using the same set up anymore, but I am thankful that you shared that here :)Conquest
R
3

I know you probably have found a way by this time but the shortcut to open a new pane in the same directory for Windows terminal is Shift+Alt+D.

You can view the image here: pane-split

Retarded answered 15/3, 2024 at 5:2 Comment(1)
Well I don't use windows anymore, but that does sound like what I needed at the time, thank you very much :) Hope it might be useful for someone in the futureConquest
V
0

As per MS docs, you need to add $e]9;9;$P$e\ to your prompt. Just figure out how to change your shell's prompt and add that string to it.

Valina answered 14/7, 2024 at 0:42 Comment(0)
G
-5

I recommend to you use no-native terminals for that kind of tasks, like cmder, conemu. These consoles have solutions for split pane.

Greenock answered 4/8, 2020 at 16:4 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.