{"action":"created","issue":{"url":"https://api.github.com/repos/nylas/N1/issues/924","labels_url":"https://api.github.com/repos/nylas/N1/issues/924/labels{/name}","comments_url":"https://api.github.com/repos/nylas/N1/issues/924/comments","events_url":"https://api.github.com/repos/nylas/N1/issues/924/events","html_url":"https://github.com/nylas/N1/issues/924","id":125536759,"number":924,"title":"Weirdness in [ and ] for Google Inbox shortcuts","user":{"login":"phoenixeliot","id":491376,"avatar_url":"https://avatars.githubusercontent.com/u/491376?v=3","gravatar_id":"","url":"https://api.github.com/users/phoenixeliot","html_url":"https://github.com/phoenixeliot","followers_url":"https://api.github.com/users/phoenixeliot/followers","following_url":"https://api.github.com/users/phoenixeliot/following{/other_user}","gists_url":"https://api.github.com/users/phoenixeliot/gists{/gist_id}","starred_url":"https://api.github.com/users/phoenixeliot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phoenixeliot/subscriptions","organizations_url":"https://api.github.com/users/phoenixeliot/orgs","repos_url":"https://api.github.com/users/phoenixeliot/repos","events_url":"https://api.github.com/users/phoenixeliot/events{/privacy}","received_events_url":"https://api.github.com/users/phoenixeliot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nylas/N1/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/nylas/N1/labels/ui","name":"ui","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-08T03:46:17Z","updated_at":"2016-01-22T23:34:57Z","closed_at":"2016-01-22T23:34:07Z","body":"Referencing #876\r\n\r\nFor Google Inbox shortcuts, I think for [, \"remove-and-next\" is not quite the correct behavior. Not sure if the function should be improved, or a new one is necessary for simulating Inbox's behavior.\r\n\r\nIt's worth noting that in Google Inbox's way of operating, no keyboard shortcuts except # should ever trash an email.\r\n\r\nThis results in some weirdness when I hit [:\r\n• It seems to advance in the wrong direction — in Inbox, [ goes to the next item in the list. In N1, it seems to go to the previous one in the list (the next one chronologically?)\r\n• If I'm in the list view, [ archives the selected email and opens the next one. It should instead archive the email and advance to the next in the list without opening it.\r\n• If the first item in the list is open or selected and I hit [, the same email will open/stay open. Hitting [ again will then move it to the trash. [ should never trash emails. Instead, hitting [ or ] at the end of a list should put me back in the list view.\r\n• Items are sent to the Trash if you're viewing them in search results, regardless of if they were previously archived. Again, [ should never trash — and if something is already marked done (archived), it should just stay marked done, and the list should advance.\r\n\r\nBehavior is slightly different in split-panel mode.\r\n• Advancement happens correctly when the first item in the list is archived.\r\n\r\nThese are the same.\r\n• Advancement still goes in the wrong direction\r\n• Search results are still wrongly trashed"},"comment":{"url":"https://api.github.com/repos/nylas/N1/issues/comments/174087218","html_url":"https://github.com/nylas/N1/issues/924#issuecomment-174087218","issue_url":"https://api.github.com/repos/nylas/N1/issues/924","id":174087218,"user":{"login":"emorikawa","id":489001,"avatar_url":"https://avatars.githubusercontent.com/u/489001?v=3","gravatar_id":"","url":"https://api.github.com/users/emorikawa","html_url":"https://github.com/emorikawa","followers_url":"https://api.github.com/users/emorikawa/followers","following_url":"https://api.github.com/users/emorikawa/following{/other_user}","gists_url":"https://api.github.com/users/emorikawa/gists{/gist_id}","starred_url":"https://api.github.com/users/emorikawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emorikawa/subscriptions","organizations_url":"https://api.github.com/users/emorikawa/orgs","repos_url":"https://api.github.com/users/emorikawa/repos","events_url":"https://api.github.com/users/emorikawa/events{/privacy}","received_events_url":"https://api.github.com/users/emorikawa/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T23:34:57Z","updated_at":"2016-01-22T23:34:57Z","body":"You're right! The `[` and `]` keys were reversed.\r\n\r\nIn Gmail if you push `e` without selecting something (via `x`) it does NOT archive. It does, however, give you a warning that `No conversations selected`."}}