{"action":"opened","issue":{"url":"https://api.github.com/repos/mpeterson2/save-session/issues/135","labels_url":"https://api.github.com/repos/mpeterson2/save-session/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/mpeterson2/save-session/issues/135/comments","events_url":"https://api.github.com/repos/mpeterson2/save-session/issues/135/events","html_url":"https://github.com/mpeterson2/save-session/issues/135","id":97754523,"number":135,"title":"With > 2 unsaved tabs, make the correct tab focused","user":{"login":"mpeterson2","id":3723316,"avatar_url":"https://avatars.githubusercontent.com/u/3723316?v=3","gravatar_id":"","url":"https://api.github.com/users/mpeterson2","html_url":"https://github.com/mpeterson2","followers_url":"https://api.github.com/users/mpeterson2/followers","following_url":"https://api.github.com/users/mpeterson2/following{/other_user}","gists_url":"https://api.github.com/users/mpeterson2/gists{/gist_id}","starred_url":"https://api.github.com/users/mpeterson2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpeterson2/subscriptions","organizations_url":"https://api.github.com/users/mpeterson2/orgs","repos_url":"https://api.github.com/users/mpeterson2/repos","events_url":"https://api.github.com/users/mpeterson2/events{/privacy}","received_events_url":"https://api.github.com/users/mpeterson2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mpeterson2/save-session/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-28T17:04:33Z","updated_at":"2015-07-28T17:04:33Z","closed_at":null,"body":"From #120, @UltCombo wrote:\r\n\r\n>Also, if you have two (or more) untitled tabs in the same window, and focus the second tab then close the window, the restored session will always focus on the first untitled tab.\r\n\r\nSo basically, if there is an untitled tab, it should save it if was focused, and then refocus it when Atom reopens it. I'm not sure if this will be possible, because it didn't seem to be in the past when I was trying this after reopening all tabs, but it'd be great to have this."}}