Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panes do not work #1

Open
adamnbowen opened this issue Nov 17, 2011 · 3 comments
Open

panes do not work #1

adamnbowen opened this issue Nov 17, 2011 · 3 comments

Comments

@adamnbowen
Copy link

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
@adamnbowen
Copy link
Author

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:

###
# #
###
# #
###

@achiurizo
Copy link
Owner

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.

@alfredo-cp
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants