Repository navigation
gtk: add +new-tab action - #11762
gtk: add +new-tab action#11762
Conversation
|
I think I would like to see the core ID portions pulled to their own PR. We have previously talked about adding a surface ID. In a dedicated PR, we could bikeshed the id format. I know Mitchell had a format in mind. |
The format really doesn't matter for this, as long as I can treat it as an "opaque" u64 that's not zero. Any further meaning to the bits makes no difference to the current use cases ( |
6f4799f to
ca70623
Compare
be251d7 to
36341eb
Compare
|
I tested this locally on Linux/GTK by cherry-picking it onto current Useful testing notes:
One thing worth double-checking in the PR: if (Action.newTab(...)) {
log.warn("new-tab: unable to create tab", .{});
}This may be inverted, unless I did not validate the Overall: this was very useful in practice, and |
36341eb to
da2ead3
Compare
41314e9 to
0b4b2f7
Compare
|
This is such a useful feature to me. Could a maintainer please take their time to review this MR and merge it if approved? Thanks for all the work! |
Ditto for me, I switched to Ghostty because it is more modern and also more functional comparing to other solutions. I also wanted to add option to automatically save / restore tabs on startup, which requires me to be able to create tabs to begin with. |
|
I hope a maintainer is able to look into this soon. |
0b4b2f7 to
28b231c
Compare
28cc993 to
fe970ad
Compare
|
Did this just get approved? |
|
By the macOS team; someone from the GTK and terminal side need to approve it too. (IIRC GitHub doesn't show teams to everyone so I'm not sure if you can see this too.) |
fe970ad to
034506f
Compare
|
Yes! Congratz! 5 months in the making! |
|
HELLLLLLLLYEAH! |
This PR adds a
+new-tabCLI action, useful for automation on GTK. This mainly re-uses machinery added for the+new-window, but adds in a unique surface ID for identifying surfaces for IPC purposes (and eliminates use of raw pointers for callbacks from notifications).