{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/7416","repository_url":"https://api.github.com/repos/neovim/neovim","labels_url":"https://api.github.com/repos/neovim/neovim/issues/7416/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/7416/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/7416/events","html_url":"https://github.com/neovim/neovim/issues/7416","id":266998779,"number":7416,"title":"Feature: ModeEnter,ModeLeave events","user":{"login":"danielyli","id":1744438,"avatar_url":"https://avatars0.githubusercontent.com/u/1744438?v=4","gravatar_id":"","url":"https://api.github.com/users/danielyli","html_url":"https://github.com/danielyli","followers_url":"https://api.github.com/users/danielyli/followers","following_url":"https://api.github.com/users/danielyli/following{/other_user}","gists_url":"https://api.github.com/users/danielyli/gists{/gist_id}","starred_url":"https://api.github.com/users/danielyli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielyli/subscriptions","organizations_url":"https://api.github.com/users/danielyli/orgs","repos_url":"https://api.github.com/users/danielyli/repos","events_url":"https://api.github.com/users/danielyli/events{/privacy}","received_events_url":"https://api.github.com/users/danielyli/received_events","type":"User","site_admin":false},"labels":[{"id":77997476,"url":"https://api.github.com/repos/neovim/neovim/labels/enhancement","name":"enhancement","color":"bfe5bf","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/neovim/neovim/milestones/6","html_url":"https://github.com/neovim/neovim/milestone/6","labels_url":"https://api.github.com/repos/neovim/neovim/milestones/6/labels","id":655037,"number":6,"title":"todo","description":"Not planned for the current target, but may be assigned later.","creator":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars0.githubusercontent.com/u/1359421?v=4","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"open_issues":249,"closed_issues":178,"state":"open","created_at":"2014-05-10T20:43:04Z","updated_at":"2018-03-21T22:13:17Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2017-10-19T21:43:01Z","updated_at":"2018-03-23T15:16:50Z","closed_at":null,"author_association":"NONE","body":"Just as the title says, like `InsertEnter` and `InsertLeave`."},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/375699138","html_url":"https://github.com/neovim/neovim/issues/7416#issuecomment-375699138","issue_url":"https://api.github.com/repos/neovim/neovim/issues/7416","id":375699138,"user":{"login":"nimitbhardwaj","id":15214129,"avatar_url":"https://avatars3.githubusercontent.com/u/15214129?v=4","gravatar_id":"","url":"https://api.github.com/users/nimitbhardwaj","html_url":"https://github.com/nimitbhardwaj","followers_url":"https://api.github.com/users/nimitbhardwaj/followers","following_url":"https://api.github.com/users/nimitbhardwaj/following{/other_user}","gists_url":"https://api.github.com/users/nimitbhardwaj/gists{/gist_id}","starred_url":"https://api.github.com/users/nimitbhardwaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nimitbhardwaj/subscriptions","organizations_url":"https://api.github.com/users/nimitbhardwaj/orgs","repos_url":"https://api.github.com/users/nimitbhardwaj/repos","events_url":"https://api.github.com/users/nimitbhardwaj/events{/privacy}","received_events_url":"https://api.github.com/users/nimitbhardwaj/received_events","type":"User","site_admin":false},"created_at":"2018-03-23T15:16:50Z","updated_at":"2018-03-23T15:16:50Z","author_association":"CONTRIBUTOR","body":"For this issue, I want to ask that, if autoevents are like the stack machine, then on the top of stack initially was normal mode (I assume, obviously it will be the initial mode), then if I press `i` we get insert mode, the Insert mode is pushed on the stack, so in this case what should be behaviour, only the `ModeEnter` event should trigger (for insert) or both `ModeEnter` and `ModeLeave` events will be triggered (one for insert and other for normal) case 1 will solve the ambiguities like I enter the CmdlineMode by `:` (pushed cmdline mode on stack so ModeEnter, but no ModeLeave) and then pressed `<c-f>` to get normal mode, here again ModeEnter will be triggered (but no ModeLeave), but instead if I would have pressed `<esc>` then there would be a ModeLeave. So What type of behaviour is good. Because presently I have made the behaviour of case 2"}}
{"actor":{"display_login":"nimitbhardwaj"}}