Closed davidrapson closed 13 years ago
hm, this seems useful. I'll have to look into this. If you liked to submit a patch, i'll be more than happy to accept =)
Hmm, looking at the docs and this issue it seems current AppleScript support in iTerm2 only covers windows and tabs, not split panes
I have found a way to split panes. Calling menu actions is possible with Applescript. I am currently working on integrating this with the terminitor dsl. The syntax is supposed to come down to this:
tab do
pane run "gitx" # first pane
pane do # horizontal split
run "ls"
end
pane run 'ls' # vertical split
end
should result into something like this
# ###########################
# # # #
# # 'gitx' # #
# # # #
# # # #
# # # #
# ############## 'ls' #
# # # #
# # # #
# # 'ls' # #
# # # #
# # # #
# ###########################
Everyone fine with that?
hm that loooks pretty good. i look forward to your patch!
I just pushed a working version to my forked repository. There is still some clean up in the code left to do, but it works as far as I am concerned.
I will clean it up and perhaps writes some test in the next few days and send a pull request after that. Please have a look at my fork and tell me if something is not working as it should be.
Thanks for this awesome project achiu!
Best regards, Mike
this feature has been pulled in and release thanks to @LevelbossMike. closing ticket!
It would be awesome if there was a way of creating new split panes within iTerm 2 in addition to tabs. Something like the following would be cool but I feel it might be clobbering your lovely syntax.