{"action":"created","issue":{"url":"https://api.github.com/repos/t9md/atom-vim-mode-plus/issues/535","repository_url":"https://api.github.com/repos/t9md/atom-vim-mode-plus","labels_url":"https://api.github.com/repos/t9md/atom-vim-mode-plus/issues/535/labels{/name}","comments_url":"https://api.github.com/repos/t9md/atom-vim-mode-plus/issues/535/comments","events_url":"https://api.github.com/repos/t9md/atom-vim-mode-plus/issues/535/events","html_url":"https://github.com/t9md/atom-vim-mode-plus/issues/535","id":191799868,"number":535,"title":"Feature Request: Option for exit insert mode when switching to other \"buffer\"/pane.","user":{"login":"jordwalke","id":977348,"avatar_url":"https://avatars.githubusercontent.com/u/977348?v=3","gravatar_id":"","url":"https://api.github.com/users/jordwalke","html_url":"https://github.com/jordwalke","followers_url":"https://api.github.com/users/jordwalke/followers","following_url":"https://api.github.com/users/jordwalke/following{/other_user}","gists_url":"https://api.github.com/users/jordwalke/gists{/gist_id}","starred_url":"https://api.github.com/users/jordwalke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordwalke/subscriptions","organizations_url":"https://api.github.com/users/jordwalke/orgs","repos_url":"https://api.github.com/users/jordwalke/repos","events_url":"https://api.github.com/users/jordwalke/events{/privacy}","received_events_url":"https://api.github.com/users/jordwalke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-26T10:49:31Z","updated_at":"2016-11-26T23:28:08Z","closed_at":null,"body":"There's an option to go back into normal mode when the editor blurs. One problem is that this fires when switching apps. This is a problem when doing something like typing in the search editor `/` and cmd+tabbing to another app to recall the word you're trying to search for, or also when quickly command+tabbing to another program while typing in insert mode to recall the word you want to type. As a general rule, I feel the best user experience is that the editor returns to normal mode when jumping to any other pane inside of the editor (including file nav or project search, or another tab/pane), but not when command+tabbing to another app. What I am suggesting is the same behavior as MacVim."},"comment":{"url":"https://api.github.com/repos/t9md/atom-vim-mode-plus/issues/comments/263092215","html_url":"https://github.com/t9md/atom-vim-mode-plus/issues/535#issuecomment-263092215","issue_url":"https://api.github.com/repos/t9md/atom-vim-mode-plus/issues/535","id":263092215,"user":{"login":"jordwalke","id":977348,"avatar_url":"https://avatars.githubusercontent.com/u/977348?v=3","gravatar_id":"","url":"https://api.github.com/users/jordwalke","html_url":"https://github.com/jordwalke","followers_url":"https://api.github.com/users/jordwalke/followers","following_url":"https://api.github.com/users/jordwalke/following{/other_user}","gists_url":"https://api.github.com/users/jordwalke/gists{/gist_id}","starred_url":"https://api.github.com/users/jordwalke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordwalke/subscriptions","organizations_url":"https://api.github.com/users/jordwalke/orgs","repos_url":"https://api.github.com/users/jordwalke/repos","events_url":"https://api.github.com/users/jordwalke/events{/privacy}","received_events_url":"https://api.github.com/users/jordwalke/received_events","type":"User","site_admin":false},"created_at":"2016-11-26T23:28:08Z","updated_at":"2016-11-26T23:28:08Z","body":"> return to normal-mode when changing active pane within atom editor\r\n> do nothing when active app changed\r\n\r\nYour description is correct, but I was mistaken that MacVim has a setting for this.\r\n\r\nBut for vmp, I think it is pretty intuitive that changing focus to any new pane, should make the *previous* pane enter normal mode. I have been trying that [wiki suggestion](https://github.com/t9md/atom-vim-mode-plus/wiki/TIPS#escape-insert-mode-when-focus-lost) and it has the unintuitive behavior that I pointed out, which is why I filed this issue. I do think that if we can get the experience to be as you described (return all existing cursors in all panes to normal mode when switching active pane within atom, but not when app changed) it would be a great config option (and possibly even on by default, but not sure).\r\n\r\n(Also, I don't know if modals like `cmd+p` should cause existing editors to return to normal mode - modals are very *temporary*, and might be canceled quickly)."}}
{"actor":{"display_login":"jordwalke"}}