{"action":"created","issue":{"url":"https://api.github.com/repos/mawww/kakoune/issues/1022","repository_url":"https://api.github.com/repos/mawww/kakoune","labels_url":"https://api.github.com/repos/mawww/kakoune/issues/1022/labels{/name}","comments_url":"https://api.github.com/repos/mawww/kakoune/issues/1022/comments","events_url":"https://api.github.com/repos/mawww/kakoune/issues/1022/events","html_url":"https://github.com/mawww/kakoune/issues/1022","id":196242922,"number":1022,"title":"<a-h> not working in :exec","user":{"login":"speckins","id":522886,"avatar_url":"https://avatars.githubusercontent.com/u/522886?v=3","gravatar_id":"","url":"https://api.github.com/users/speckins","html_url":"https://github.com/speckins","followers_url":"https://api.github.com/users/speckins/followers","following_url":"https://api.github.com/users/speckins/following{/other_user}","gists_url":"https://api.github.com/users/speckins/gists{/gist_id}","starred_url":"https://api.github.com/users/speckins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/speckins/subscriptions","organizations_url":"https://api.github.com/users/speckins/orgs","repos_url":"https://api.github.com/users/speckins/repos","events_url":"https://api.github.com/users/speckins/events{/privacy}","received_events_url":"https://api.github.com/users/speckins/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-17T21:06:25Z","updated_at":"2016-12-18T07:58:22Z","closed_at":null,"body":"I'm trying to map Ctrl-U in insert mode using exactly the suggestion in [this comment](https://github.com/mawww/kakoune/issues/334#issuecomment-124083019):\r\n\r\n    map global insert <c-u> '<a-;>:exec -draft <a-h>d<ret>'\r\n\r\nBut I'm getting the following error after entering the `map` command:\r\n\r\n    1:1: 'exec' unknown option '-draftd'\r\n\r\nIf I leave off the `-draft` option, the mapping is accepted, but when I attempt to execute it, this error occurs:\r\n\r\n    execd : no such command\r\n\r\n(Edit:  forgot to mention, I'm using a0c787e on OS X 10.9.5)"},"comment":{"url":"https://api.github.com/repos/mawww/kakoune/issues/comments/267808628","html_url":"https://github.com/mawww/kakoune/issues/1022#issuecomment-267808628","issue_url":"https://api.github.com/repos/mawww/kakoune/issues/1022","id":267808628,"user":{"login":"lenormf","id":1379068,"avatar_url":"https://avatars.githubusercontent.com/u/1379068?v=3","gravatar_id":"","url":"https://api.github.com/users/lenormf","html_url":"https://github.com/lenormf","followers_url":"https://api.github.com/users/lenormf/followers","following_url":"https://api.github.com/users/lenormf/following{/other_user}","gists_url":"https://api.github.com/users/lenormf/gists{/gist_id}","starred_url":"https://api.github.com/users/lenormf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenormf/subscriptions","organizations_url":"https://api.github.com/users/lenormf/orgs","repos_url":"https://api.github.com/users/lenormf/repos","events_url":"https://api.github.com/users/lenormf/events{/privacy}","received_events_url":"https://api.github.com/users/lenormf/received_events","type":"User","site_admin":false},"created_at":"2016-12-18T07:58:22Z","updated_at":"2016-12-18T07:58:22Z","body":"You need an extra level of escaping because there is a promp context spawned in your list of keys:\r\n\r\n```\r\nmap global insert <c-u> '<a-;>:exec<space>-draft<space><lt>a-h>d<ret>'\r\n```\r\n\r\nYou could also move the `exec` string into a hidden function to make things clearer, and only use `eval<space>myfunc<ret>` in the binding itself."}}
{"actor":{"display_login":"lenormf"}}