{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/871","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/871/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/871/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/871/events","html_url":"https://github.com/Microsoft/vscode/issues/871","id":119749466,"number":871,"title":"Macro like keybindings","user":{"login":"TheColorRed","id":1571806,"avatar_url":"https://avatars0.githubusercontent.com/u/1571806?v=3","gravatar_id":"","url":"https://api.github.com/users/TheColorRed","html_url":"https://github.com/TheColorRed","followers_url":"https://api.github.com/users/TheColorRed/followers","following_url":"https://api.github.com/users/TheColorRed/following{/other_user}","gists_url":"https://api.github.com/users/TheColorRed/gists{/gist_id}","starred_url":"https://api.github.com/users/TheColorRed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheColorRed/subscriptions","organizations_url":"https://api.github.com/users/TheColorRed/orgs","repos_url":"https://api.github.com/users/TheColorRed/repos","events_url":"https://api.github.com/users/TheColorRed/events{/privacy}","received_events_url":"https://api.github.com/users/TheColorRed/received_events","type":"User","site_admin":false},"labels":[{"id":272689392,"url":"https://api.github.com/repos/Microsoft/vscode/labels/feature-request","name":"feature-request","color":"708090","default":false},{"id":297959291,"url":"https://api.github.com/repos/Microsoft/vscode/labels/keybindings","name":"keybindings","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Microsoft/vscode/milestones/8","html_url":"https://github.com/Microsoft/vscode/milestone/8","labels_url":"https://api.github.com/repos/Microsoft/vscode/milestones/8/labels","id":1412124,"number":8,"title":"Backlog","description":"Work not yet planned for a specific release.","creator":{"login":"chrisdias","id":1487073,"avatar_url":"https://avatars3.githubusercontent.com/u/1487073?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisdias","html_url":"https://github.com/chrisdias","followers_url":"https://api.github.com/users/chrisdias/followers","following_url":"https://api.github.com/users/chrisdias/following{/other_user}","gists_url":"https://api.github.com/users/chrisdias/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdias/subscriptions","organizations_url":"https://api.github.com/users/chrisdias/orgs","repos_url":"https://api.github.com/users/chrisdias/repos","events_url":"https://api.github.com/users/chrisdias/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdias/received_events","type":"User","site_admin":false},"open_issues":2164,"closed_issues":1904,"state":"open","created_at":"2015-11-15T10:30:19Z","updated_at":"2017-05-10T17:45:39Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-12-01T16:06:17Z","updated_at":"2017-05-10T18:35:08Z","closed_at":null,"body":"When creating keyboard shortcuts, it would be nice if you could pass an array of commands (to execute like a macro) that would run the commands in that order.\n\nSo take this for example:\n\n```\n{\n    \"key\": \"ctrl+s\",\n    \"command\": [\n        \"editor.action.format\",\n        \"editor.action.trimTrailingWhitespace\",\n        \"workbench.action.files.save\"\n    ],\n    \"when\": \"editorTextFocus\"\n}\n```\n\nIt would format the file, remove trailing white space then save the file.\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/300574193","html_url":"https://github.com/Microsoft/vscode/issues/871#issuecomment-300574193","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/871","id":300574193,"user":{"login":"dvf","id":1169974,"avatar_url":"https://avatars0.githubusercontent.com/u/1169974?v=3","gravatar_id":"","url":"https://api.github.com/users/dvf","html_url":"https://github.com/dvf","followers_url":"https://api.github.com/users/dvf/followers","following_url":"https://api.github.com/users/dvf/following{/other_user}","gists_url":"https://api.github.com/users/dvf/gists{/gist_id}","starred_url":"https://api.github.com/users/dvf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvf/subscriptions","organizations_url":"https://api.github.com/users/dvf/orgs","repos_url":"https://api.github.com/users/dvf/repos","events_url":"https://api.github.com/users/dvf/events{/privacy}","received_events_url":"https://api.github.com/users/dvf/received_events","type":"User","site_admin":false},"created_at":"2017-05-10T18:35:08Z","updated_at":"2017-05-10T18:35:08Z","body":"You probably want to allow arguments, for example when using the `type` command:\r\n\r\n```\r\n{\r\n    \"key\": \"ctrl+;\",\r\n    \"commands\": [\r\n        {\r\n             \"command\": \"cursorEnd\"\r\n        },\r\n        {\r\n             \"command\": \"type\",\r\n             \"args\": { \"text\": \";\" }\r\n        }\r\n    ]\r\n    \"when\": \"editorTextFocus\"\r\n}\r\n```"}}
{"actor":{"display_login":"dvf"}}