mklement0 / ttab

macOS and Linux CLI for opening a new terminal tab/window, optionally with a command to execute and/or display settings
283 stars 16 forks source link

feature: Support for tmux #36

Closed tjmgregory closed 2 years ago

tjmgregory commented 3 years ago

Would love for this to support tmux, which currently I use with Alacritty. Happy to be assigned this, to act as a reminder for me to get this done.

mklement0 commented 3 years ago

Thanks, @tjmgregory, but how do you envision tmux (which I know very little about) fitting into ttab?

tjmgregory commented 2 years ago

It appears I missed your reply, apologies! Tmux is a terminal multiplexer (allows you to have multiple panes in one window) and ultimately it would be super if this could open up multiple panes in tmux, much like windows/tabs in iTerm :)

Nauxscript commented 2 years ago

I have the same qutions,would you support some other terminal application like Warp?

or some other way to set ttab open another terminal except iTerm2?

thx !

mklement0 commented 2 years ago

@tjmgregory, I've only just now started to play with tmux a bit, but it seems to me that it has its own, extensive CLI (see man tmux) that you can simply combine with ttab:

For instance, the following command opens tmux in a new tab with a new session and 3 panes:

ttab tmux new \; splitw \; splitw -h
mklement0 commented 2 years ago

@Nauxscript, can you please open a new issue, specifically for Warp?

If you can, please add information about its CLI, which will give me a sense of whether adding support is worth contemplating.

mklement0 commented 2 years ago

@tjmgregory, I missed the Alacritty angle:

I'm assuming you are looking for a ttab tmux ... command to open in another Alacritty tab, right?

That would require adding support for Alacritty, and, similarly, a look at its CLI would be required to assess the potential for adding support.

tjmgregory commented 2 years ago

Hiya @mklement0 - thanks for getting back to me. That's right. The use case we had at work was we had ttab used in some of our system setup scripts, which I wouldn't have an easy time of changing to support Alacritty 👍 Don't feel an urgency to add on my behalf now though, as the infra team moved our setup to use Tilt so little gets spun up on our local machines these days. But thanks awesomely for getting back to me 🦸