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 15 forks source link

Add method to navigate between splits (iTerm2) #75

Closed danielcompton closed 2 months ago

danielcompton commented 2 months ago

I like to have a 3x2 grid of tabs when working, with each one having a different program running. I haven't been able to work out how to reproduce this in ttab because I need to move between the split to be able to create new splits in the right places:

Screenshot of iTerm2 at 30 Aug 2024 at 10_14_00 AM

Is it possible to add a command to move left/right between splits?

mklement0 commented 2 months ago

ttab only ever submits a command that creates terminal tabs / windows, then exits.

Thus, it has no control over what happens thereafter.

mklement0 commented 2 months ago

I'm closing this, but let me know if I misinterpreted your issue.

danielcompton commented 1 month ago

I guess I was imagining there could be a new command that just sent an applescript command to move to the next window pane. Something like ttab --right, ttab --down.

mklement0 commented 1 month ago

I see, @danielcompton, but I feel this is outside of ttab's mandate.

danielcompton commented 1 month ago

Thanks! I think https://github.com/TomAnthony/itermocil or https://github.com/remi/teamocil might be what I need for this.