consular-iterm
consular-iterm copied to clipboard
panes do not work
Okay, so it looks like panes are not working in the current version of iterm. Here is the (fairly unhelpful) console dump:
11/17/11 12:17:55 PM iTerm[17182] Cocoa scripting error for '(null)': four character codes must be four characters long.
11/17/11 12:17:55 PM iTerm[17182] .scriptSuite warning for result type of command 'launch' in suite 'iTerm': the type PTYSession ('Pssn') doesn't match the result Apple event code ('').
The only thing iTerm manages to do is open up a new tab (though no commands are run). Just for fun, here's the script I was trying to run:
directory = '~/Sites/elysa'
url = 'elysa'
tab :name => "elysa" do
pane do
run "cd #{directory}"
run 'compass watch'
pane do
run "cd #{directory}"
run "mvim --cmd 'cd #{directory}'"
run 'zsh'
run "open http://#{url}"
run 'clear'
end
end
end
Okay, so I saw your comment in Issue 3 of Consular, but the result is still incorrect (as far as I'm concerned).
If I change my above code to say window do
instead of tab do
, then I get a setup like this:
#####
# # #
### #
# # #
#####
when I should see panes like this:
###
# #
###
# #
###
currently thats the limitations with the panes, it generates them vertically first then any nested panes get turned in to horizontal panes. Seems this is better to have some form of options specified to allow more custom setups. I'll look into adding this.
any news on this?
I was trying to create a new window with only horizontal panes
+---+
| a |
+---+
| b |
+---+
| c |
+---+
| d |
+---+
but it doesn't work, always the second pane is vertical.