{"action":"created","issue":{"url":"https://api.github.com/repos/christoomey/vim-tmux-runner/issues/60","repository_url":"https://api.github.com/repos/christoomey/vim-tmux-runner","labels_url":"https://api.github.com/repos/christoomey/vim-tmux-runner/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/christoomey/vim-tmux-runner/issues/60/comments","events_url":"https://api.github.com/repos/christoomey/vim-tmux-runner/issues/60/events","html_url":"https://github.com/christoomey/vim-tmux-runner/issues/60","id":140220197,"number":60,"title":"Option to tell VTR to attach to the first terminal it finds","user":{"login":"naps62","id":283819,"avatar_url":"https://avatars.githubusercontent.com/u/283819?v=3","gravatar_id":"","url":"https://api.github.com/users/naps62","html_url":"https://github.com/naps62","followers_url":"https://api.github.com/users/naps62/followers","following_url":"https://api.github.com/users/naps62/following{/other_user}","gists_url":"https://api.github.com/users/naps62/gists{/gist_id}","starred_url":"https://api.github.com/users/naps62/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naps62/subscriptions","organizations_url":"https://api.github.com/users/naps62/orgs","repos_url":"https://api.github.com/users/naps62/repos","events_url":"https://api.github.com/users/naps62/events{/privacy}","received_events_url":"https://api.github.com/users/naps62/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-11T15:56:17Z","updated_at":"2016-03-12T23:47:10Z","closed_at":null,"body":"I'm sorry if this was asked before, I couldn't find it...\r\n\r\nDuring my day, I restart vim a lot, so I end up having to re-create the runner pane all the time.\r\nMost of the times, I will close vim, and end up opening it again later, all this while the original runner panel is still there.\r\nIt would be useful for me tell VTR that, when he isn't attached to any pane, and I ask him to run a command, he could just run it on the next pane it finds in the current tab\r\n\r\nIs this currently possible?"},"comment":{"url":"https://api.github.com/repos/christoomey/vim-tmux-runner/issues/comments/195835946","html_url":"https://github.com/christoomey/vim-tmux-runner/issues/60#issuecomment-195835946","issue_url":"https://api.github.com/repos/christoomey/vim-tmux-runner/issues/60","id":195835946,"user":{"login":"christoomey","id":420113,"avatar_url":"https://avatars.githubusercontent.com/u/420113?v=3","gravatar_id":"","url":"https://api.github.com/users/christoomey","html_url":"https://github.com/christoomey","followers_url":"https://api.github.com/users/christoomey/followers","following_url":"https://api.github.com/users/christoomey/following{/other_user}","gists_url":"https://api.github.com/users/christoomey/gists{/gist_id}","starred_url":"https://api.github.com/users/christoomey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christoomey/subscriptions","organizations_url":"https://api.github.com/users/christoomey/orgs","repos_url":"https://api.github.com/users/christoomey/repos","events_url":"https://api.github.com/users/christoomey/events{/privacy}","received_events_url":"https://api.github.com/users/christoomey/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T23:47:10Z","updated_at":"2016-03-12T23:47:10Z","body":"Hey @naps62, thanks for the question. This idea in various forms has been tossed around, but I don't think exactly what you're asking has been discussed. Currently it is not supported.\r\n\r\nI personally want VTR to be as conservative as possible as I often use `killRunner` and am interacting with production systems via it, so I'd rather have to be extra explicit than have any mixup there.\r\n\r\nThat said, I think we could add a new command that supports your desired workflow. Roughly what I imagine is a new command, perhaps `:VtrRunWithAssumedPane` or similar, and it would:\r\n\r\n- Use an \"attached\" pane if set (with sanity check logic to make sure it exists, isn't the Vim pane, etc)\r\n- Try to attach to the \"next\" pane (would this by the numerically higher pane?)\r\n- Open a new pane if only the Vim pane exists (maybe?)\r\n\r\n@naps62 what do you think of the above? /cc @gabebw @gfontenot for any thoughts you might have."}}