{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/4399","repository_url":"https://api.github.com/repos/neovim/neovim","labels_url":"https://api.github.com/repos/neovim/neovim/issues/4399/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/4399/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/4399/events","html_url":"https://github.com/neovim/neovim/issues/4399","id":138063588,"number":4399,"title":"provide \"ModeChanged\" event (and fix \"mode()\")","user":{"login":"bsmith89","id":711411,"avatar_url":"https://avatars.githubusercontent.com/u/711411?v=3","gravatar_id":"","url":"https://api.github.com/users/bsmith89","html_url":"https://github.com/bsmith89","followers_url":"https://api.github.com/users/bsmith89/followers","following_url":"https://api.github.com/users/bsmith89/following{/other_user}","gists_url":"https://api.github.com/users/bsmith89/gists{/gist_id}","starred_url":"https://api.github.com/users/bsmith89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsmith89/subscriptions","organizations_url":"https://api.github.com/users/bsmith89/orgs","repos_url":"https://api.github.com/users/bsmith89/repos","events_url":"https://api.github.com/users/bsmith89/events{/privacy}","received_events_url":"https://api.github.com/users/bsmith89/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neovim/neovim/labels/enhancement","name":"enhancement","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/neovim/neovim/milestones/6","html_url":"https://github.com/neovim/neovim/milestones/todo","labels_url":"https://api.github.com/repos/neovim/neovim/milestones/6/labels","id":655037,"number":6,"title":"todo","description":"\"todo\" items are *definitely not* planned for the *current* target, but *may* be given priority for a future target. Y'know, like todo.txt ;)","creator":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars.githubusercontent.com/u/1359421?v=3","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":109,"closed_issues":36,"state":"open","created_at":"2014-05-10T20:43:04Z","updated_at":"2016-03-05T23:01:54Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2016-03-03T03:25:43Z","updated_at":"2016-03-07T00:07:50Z","closed_at":null,"body":"Following in the footsteps of #4322, I'd like to ask about an autocmd event.\r\n\r\nThere are already \"CmdwinEnter\"  and \"CmdwinLeave\" events, but those are for the `q:` buffer, not the command line (i.e. `:`)\r\n\r\nAs a use case, I'd like to be able to toggle line numbering between relative and absolute when in normal mode versus on the command line."},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/193020320","html_url":"https://github.com/neovim/neovim/issues/4399#issuecomment-193020320","issue_url":"https://api.github.com/repos/neovim/neovim/issues/4399","id":193020320,"user":{"login":"bfredl","id":1363104,"avatar_url":"https://avatars.githubusercontent.com/u/1363104?v=3","gravatar_id":"","url":"https://api.github.com/users/bfredl","html_url":"https://github.com/bfredl","followers_url":"https://api.github.com/users/bfredl/followers","following_url":"https://api.github.com/users/bfredl/following{/other_user}","gists_url":"https://api.github.com/users/bfredl/gists{/gist_id}","starred_url":"https://api.github.com/users/bfredl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfredl/subscriptions","organizations_url":"https://api.github.com/users/bfredl/orgs","repos_url":"https://api.github.com/users/bfredl/repos","events_url":"https://api.github.com/users/bfredl/events{/privacy}","received_events_url":"https://api.github.com/users/bfredl/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T00:07:50Z","updated_at":"2016-03-07T00:07:50Z","body":"I was was wrong about `mode()`, `mode()` just does what it is asked for. The behavior is because when the command inside `vmap :<c-u>...<cr>` is executing, nvim has already completely left visual mode. "}}