TomAnthony / itermocil

Create pre-defined window/pane layouts and run commands in iTerm
MIT License
2.33k stars 165 forks source link

Support for 2/3 size Panes etc? #27

Open orbitbot opened 8 years ago

orbitbot commented 8 years ago

I've just picked up this tool, seems to work nicely, thanks! Is there any way to set up a layout with two panes, one being 2/3rds the width of a window, and the next one third? Looking at the source code and browsing through the iTerm docs I couldn't quickly find anything that would allow setting widths by ratio or pixels

skurpi commented 8 years ago

I have a similar issue: I'd like to dynamically create layouts instead of choosing from predefined ones. One specific that I'd like to achieve is two columns, one with 4 rows and one with two rows.

orbitbot commented 8 years ago

If you have python skills, I believe that any specific layout could be fairly easy to set up by extending the script a bit, as long as you're ok that the splits are 50%-50% for any sub-panes (which seems to be default).

TomAnthony commented 8 years ago

I have a private branch (though I've not it for touched for a while) where I implemented tmux's format for putting together arbitrary layouts of windows. This would allow what you want to do.

I was resistant to releasing it until the new iTerm beta went stable, as the current stable iTerm has a lot less support for Applescript which makes more complex layouts not a lot of fun...

Now I know there is demand I'll try to find time to revisit this or at least release my branch with what I have so far. :)

orbitbot commented 8 years ago

@TomAnthony That would be nice! I'm not sure about the roadmap for iTerm2-beta/3, but I believe it's been in beta for over a year so there's no telling of when it would finally be released.

A separate branch which supports the current beta would be a good approach IMHO.

TomAnthony commented 8 years ago

iTermocil currently does support the beta version, btw. It works much better with the beta version than the stable version. However, I've generally only released stuff where I can support both versions (often with Pull Requests I have to write the version of the contributed code for the stable iTerm). This functionality would just be something that moved towards only supporting the beta version though.

I'll definitely take a look! :)

mistadikay commented 8 years ago

Hey @TomAnthony, any update on this? This is one of the most missing features for me and my colleagues currently. If you have any ideas, perhaps you can share them here and someone (maybe me) will create a PR for this feature?