{"action":"created","issue":{"url":"https://api.github.com/repos/atom/tabs/issues/134","labels_url":"https://api.github.com/repos/atom/tabs/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/atom/tabs/issues/134/comments","events_url":"https://api.github.com/repos/atom/tabs/issues/134/events","html_url":"https://github.com/atom/tabs/pull/134","id":71304910,"number":134,"title":"Add \"open in new window\" option to tabs context menu","user":{"login":"davidgross","id":3709653,"avatar_url":"https://avatars.githubusercontent.com/u/3709653?v=3","gravatar_id":"","url":"https://api.github.com/users/davidgross","html_url":"https://github.com/davidgross","followers_url":"https://api.github.com/users/davidgross/followers","following_url":"https://api.github.com/users/davidgross/following{/other_user}","gists_url":"https://api.github.com/users/davidgross/gists{/gist_id}","starred_url":"https://api.github.com/users/davidgross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidgross/subscriptions","organizations_url":"https://api.github.com/users/davidgross/orgs","repos_url":"https://api.github.com/users/davidgross/repos","events_url":"https://api.github.com/users/davidgross/events{/privacy}","received_events_url":"https://api.github.com/users/davidgross/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/tabs/labels/requires-changes","name":"requires-changes","color":"fef2c0"},{"url":"https://api.github.com/repos/atom/tabs/labels/under-review","name":"under-review","color":"bfe5bf"}],"state":"open","locked":false,"assignee":{"login":"mnquintana","id":823545,"avatar_url":"https://avatars.githubusercontent.com/u/823545?v=3","gravatar_id":"","url":"https://api.github.com/users/mnquintana","html_url":"https://github.com/mnquintana","followers_url":"https://api.github.com/users/mnquintana/followers","following_url":"https://api.github.com/users/mnquintana/following{/other_user}","gists_url":"https://api.github.com/users/mnquintana/gists{/gist_id}","starred_url":"https://api.github.com/users/mnquintana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnquintana/subscriptions","organizations_url":"https://api.github.com/users/mnquintana/orgs","repos_url":"https://api.github.com/users/mnquintana/repos","events_url":"https://api.github.com/users/mnquintana/events{/privacy}","received_events_url":"https://api.github.com/users/mnquintana/received_events","type":"User","site_admin":false},"milestone":null,"comments":14,"created_at":"2015-04-27T14:46:16Z","updated_at":"2015-05-14T23:50:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/atom/tabs/pulls/134","html_url":"https://github.com/atom/tabs/pull/134","diff_url":"https://github.com/atom/tabs/pull/134.diff","patch_url":"https://github.com/atom/tabs/pull/134.patch"},"body":"This creates a workaround for https://github.com/atom/tabs/issues/39\r\n\r\nI have added a context menu option for opening a tab in a new window.\r\n\r\nI placed it in the \"reveal in treeview, reopen closed tab\" section, below the split section. \r\n\r\nIt just spawns a new atom session, and then opens the file in question, and closes it in the current(old) window.\r\n\r\nIt will prompt the user to save the file before closing the tab in the old window, if there are unsaved changes.\r\n\r\n![tab-bar-view coffee - -home-grosda-work-atom-tabs - atom_003](https://cloud.githubusercontent.com/assets/3709653/7349943/d6ef4a30-ecb9-11e4-9f4e-6dfbe6e4236c.png)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/atom/tabs/issues/comments/102203187","html_url":"https://github.com/atom/tabs/pull/134#issuecomment-102203187","issue_url":"https://api.github.com/repos/atom/tabs/issues/134","id":102203187,"user":{"login":"mnquintana","id":823545,"avatar_url":"https://avatars.githubusercontent.com/u/823545?v=3","gravatar_id":"","url":"https://api.github.com/users/mnquintana","html_url":"https://github.com/mnquintana","followers_url":"https://api.github.com/users/mnquintana/followers","following_url":"https://api.github.com/users/mnquintana/following{/other_user}","gists_url":"https://api.github.com/users/mnquintana/gists{/gist_id}","starred_url":"https://api.github.com/users/mnquintana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnquintana/subscriptions","organizations_url":"https://api.github.com/users/mnquintana/orgs","repos_url":"https://api.github.com/users/mnquintana/repos","events_url":"https://api.github.com/users/mnquintana/events{/privacy}","received_events_url":"https://api.github.com/users/mnquintana/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T23:50:21Z","updated_at":"2015-05-14T23:50:21Z","body":"> Any pointers on the unsaved buffer thing? (I had worked on that a bit(before this pull request), and was unable to find a solution)\r\n\r\nYou could do something like:\r\n\r\n- If it's an unsaved buffer, [store its contents in a variable](https://atom.io/docs/api/v0.199.0/TextEditor#instance-getText), open a new window with an unsaved buffer, and then [set the text of that new unsaved buffer](https://atom.io/docs/api/v0.199.0/TextEditor#instance-setText) to the contents of the previous unsaved buffer.\r\n\r\n> And atom's run modes, how is that determined?\r\n\r\n`atom.open` has options for dev mode and safe mode: https://atom.io/docs/api/v0.199.0/Atom#instance-open\r\n\r\nHope that helps!"}}