{"action":"created","issue":{"url":"https://api.github.com/repos/tmuxinator/tmuxinator/issues/406","repository_url":"https://api.github.com/repos/tmuxinator/tmuxinator","labels_url":"https://api.github.com/repos/tmuxinator/tmuxinator/issues/406/labels{/name}","comments_url":"https://api.github.com/repos/tmuxinator/tmuxinator/issues/406/comments","events_url":"https://api.github.com/repos/tmuxinator/tmuxinator/issues/406/events","html_url":"https://github.com/tmuxinator/tmuxinator/issues/406","id":148226077,"number":406,"title":"Strange behaviour when panes defined as multi-element dictionaries","user":{"login":"podung","id":5726027,"avatar_url":"https://avatars.githubusercontent.com/u/5726027?v=3","gravatar_id":"","url":"https://api.github.com/users/podung","html_url":"https://github.com/podung","followers_url":"https://api.github.com/users/podung/followers","following_url":"https://api.github.com/users/podung/following{/other_user}","gists_url":"https://api.github.com/users/podung/gists{/gist_id}","starred_url":"https://api.github.com/users/podung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/podung/subscriptions","organizations_url":"https://api.github.com/users/podung/orgs","repos_url":"https://api.github.com/users/podung/repos","events_url":"https://api.github.com/users/podung/events{/privacy}","received_events_url":"https://api.github.com/users/podung/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-14T01:35:38Z","updated_at":"2016-06-13T03:00:13Z","closed_at":"2016-06-13T03:00:13Z","body":"There appears to be a bug in the handling of a pane element that contains a multi-element dictionary.  I found it when working on a PR for #266.\r\n\r\n```yaml\r\n# This works: A pane with 2 elements in an array, each being a single-element dictionary\r\npanes:\r\n  - pane1: echo \"first pane\"\r\n  - pane2: echo \"second pane\"\r\n# results in the expected 2 panes, each running its respective echo command.\r\n```\r\n\r\n```yaml\r\n# This doesn't: An array that contains a multi-element dictionary\r\npanes:\r\n  - pane1: echo \"first pane\"\r\n    pane2: echo \"second pane\"\r\n# bizarrely creates three panes\r\n# All the commands run in the first pane, the next two panes are empty panes\r\n```\r\n\r\nThe options I see are:\r\n1. Take the first element and ignore the rest (this is consistent with how multi-element Windows yaml is handled (`value = window_yaml.values.first` in window.rb:18)\r\n2. Make each element its own pane\r\n3. Print out some sort of invalid format error\r\n\r\nI know its a corner case that's pretty minor, but I'm trying clean up the surrounding code a bit while I address #266.\r\n\r\nAny thoughts?  I'm open to any suggestions."},"comment":{"url":"https://api.github.com/repos/tmuxinator/tmuxinator/issues/comments/225480333","html_url":"https://github.com/tmuxinator/tmuxinator/issues/406#issuecomment-225480333","issue_url":"https://api.github.com/repos/tmuxinator/tmuxinator/issues/406","id":225480333,"user":{"login":"podung","id":5726027,"avatar_url":"https://avatars.githubusercontent.com/u/5726027?v=3","gravatar_id":"","url":"https://api.github.com/users/podung","html_url":"https://github.com/podung","followers_url":"https://api.github.com/users/podung/followers","following_url":"https://api.github.com/users/podung/following{/other_user}","gists_url":"https://api.github.com/users/podung/gists{/gist_id}","starred_url":"https://api.github.com/users/podung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/podung/subscriptions","organizations_url":"https://api.github.com/users/podung/orgs","repos_url":"https://api.github.com/users/podung/repos","events_url":"https://api.github.com/users/podung/events{/privacy}","received_events_url":"https://api.github.com/users/podung/received_events","type":"User","site_admin":false},"created_at":"2016-06-13T03:00:13Z","updated_at":"2016-06-13T03:00:13Z","body":"Closed by #418 "}}
{"actor":{"display_login":"podung"}}