{"action":"opened","issue":{"url":"https://api.github.com/repos/zyedidia/micro/issues/1216","repository_url":"https://api.github.com/repos/zyedidia/micro","labels_url":"https://api.github.com/repos/zyedidia/micro/issues/1216/labels{/name}","comments_url":"https://api.github.com/repos/zyedidia/micro/issues/1216/comments","events_url":"https://api.github.com/repos/zyedidia/micro/issues/1216/events","html_url":"https://github.com/zyedidia/micro/issues/1216","id":369647210,"node_id":"MDU6SXNzdWUzNjk2NDcyMTA=","number":1216,"title":"Custom keybinding for \"Quit, without saving\" possible?","user":{"login":"zanglebert","id":7314851,"node_id":"MDQ6VXNlcjczMTQ4NTE=","avatar_url":"https://avatars2.githubusercontent.com/u/7314851?v=4","gravatar_id":"","url":"https://api.github.com/users/zanglebert","html_url":"https://github.com/zanglebert","followers_url":"https://api.github.com/users/zanglebert/followers","following_url":"https://api.github.com/users/zanglebert/following{/other_user}","gists_url":"https://api.github.com/users/zanglebert/gists{/gist_id}","starred_url":"https://api.github.com/users/zanglebert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanglebert/subscriptions","organizations_url":"https://api.github.com/users/zanglebert/orgs","repos_url":"https://api.github.com/users/zanglebert/repos","events_url":"https://api.github.com/users/zanglebert/events{/privacy}","received_events_url":"https://api.github.com/users/zanglebert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-12T17:43:02Z","updated_at":"2018-10-12T17:43:02Z","closed_at":null,"author_association":"NONE","body":"Hi\r\n\r\nI've tried to define a custom keybinding for \"Quitting without saving\", i.e. a keybinding that automatically enters \"n\" in the \"Save? y/n/escape\" dialogue that follows a Quit command in a changed file. My first idea was something like:\r\n`\"CtrlQ\": \t\t\t\"Quit,\"N\",`\r\nbut I realize that doesn't work, since \"N\" is a key event, not a command. Next attempt:\r\n`\"CtrlQ\": \t\t\t\"Quit,\"command:echo'n'\",`\r\nbut that's wrong on several levels I guess.\r\n\r\nAnyway, I'm fresh out of ideas. Is this even possible, given the limitations of both the (OS X) terminal, and the available actions defined by Micro?"}}
{"actor":{"display_login":"zanglebert"}}