You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NOTE THAT ghostty -e foo WORKS FINE. This issue is tracking the -e flag specifically on the +new-window subcommand, which is a totally separate machine.
This should work. I think @jcollie put a lot of the groundwork in already.
Reacted by Christian Kugler, Facundo Lerena, Tomasz N, Brian Goff, Utkarsh Verma, Mariusz Stępień, Larry Oates, Luke Bailey, Jurriaan Pruis, Marco Bulgarelli and 9 more
Note that ghostty +new-window -h already claims this works:
It claims that it works. It kinda does, in that the arguments are sent to the Ghostty instance, but nothing is done with them other than emit some debug logs.
The docs should be updated, we didn't get this in for 1.2.0 and don't consider this a bug. This will ship in a 1.3. I'll make an issue to track it though.
Shouldn't this issue be added to the 1.3 milestone? Or has it been postponed to 1.4 and later?
Reacted by boydaihungst, Armen Bakir, onelock and Radek 'blufor' Slavicinsky
Is only -e the subject for support or other flags as well?
I'm looking specifically at these 2 flags:
window-inherit-working-directory: Having an option to spawn a new surface with or without inheriting working directory would be useful.
x11-instance-name: Currently, single instance has to be disabled to be able to use toggleable terminals in tiling WMs. This is because the process used to launch the terminal and the actual terminal window do not match. If x11-instance-name is supported with +new-window this could be worked around by setting a custom WM_CLASS and making the WM match against it to track the new terminal window to be made toggleable.
FYI, making +new-window and -e work in a single Ghostty instance is not going to be in 1.3. If someone wanted to work on a PR to update the various bits of documentation that says that it does work in a single Ghostty instance that would be appreciated.
Activity
pandalec commentedon Sep 23, 2025
mitchellh commentedon Sep 23, 2025
@pandalec unrelated, open a new discussion
Syphdias commentedon Sep 23, 2025
Note that
ghostty +new-window -halready claims this works:ghostty/src/cli/new_window.zig
Lines 66 to 70 in f97518c
jcollie commentedon Sep 23, 2025
It claims that it works. It kinda does, in that the arguments are sent to the Ghostty instance, but nothing is done with them other than emit some debug logs.
Syphdias commentedon Sep 23, 2025
As clearly stated by the commit :) 824185f
fix yazi hyprland shortcut
guemidiborhane commentedon Oct 29, 2025
Are there any plans to implement it at some point?
WieeRd commentedon Jan 10, 2026
#8860 (comment)
Shouldn't this issue be added to the 1.3 milestone? Or has it been postponed to 1.4 and later?
WieeRd commentedon Jan 10, 2026
Is only
-ethe subject for support or other flags as well?I'm looking specifically at these 2 flags:
window-inherit-working-directory: Having an option to spawn a new surface with or without inheriting working directory would be useful.x11-instance-name: Currently, single instance has to be disabled to be able to use toggleable terminals in tiling WMs. This is because the process used to launch the terminal and the actual terminal window do not match. Ifx11-instance-nameis supported with+new-windowthis could be worked around by setting a customWM_CLASSand making the WM match against it to track the new terminal window to be made toggleable.b0o commentedon Jan 16, 2026
Until this is fixed, it would be nice if
+new-window --helpnoted that this doesn't work yet.ulzu commentedon Jan 17, 2026
not only that -
man ghosttysays+new-windowisOnly supported on GTK.misleading!
jcollie commentedon Jan 24, 2026
FYI, making
+new-windowand-ework in a single Ghostty instance is not going to be in 1.3. If someone wanted to work on a PR to update the various bits of documentation that says that it does work in a single Ghostty instance that would be appreciated.incogcyberpunk commentedon Feb 2, 2026
28 remaining items
gtk: `+new-window` now respects `--working-directory` and `-e` (#10809)
gtk: `+new-window` now respects `--working-directory` and `-e`
gtk: `+new-window` now respects `--working-directory` and `-e`
Merge upstream-main into main (#34)