{"action":"created","issue":{"url":"https://api.github.com/repos/zeit/hyperterm/issues/251","repository_url":"https://api.github.com/repos/zeit/hyperterm","labels_url":"https://api.github.com/repos/zeit/hyperterm/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/zeit/hyperterm/issues/251/comments","events_url":"https://api.github.com/repos/zeit/hyperterm/issues/251/events","html_url":"https://github.com/zeit/hyperterm/issues/251","id":166156567,"number":251,"title":"Keyboard shortcut manager plugin","user":{"login":"lorensr","id":251288,"avatar_url":"https://avatars.githubusercontent.com/u/251288?v=3","gravatar_id":"","url":"https://api.github.com/users/lorensr","html_url":"https://github.com/lorensr","followers_url":"https://api.github.com/users/lorensr/followers","following_url":"https://api.github.com/users/lorensr/following{/other_user}","gists_url":"https://api.github.com/users/lorensr/gists{/gist_id}","starred_url":"https://api.github.com/users/lorensr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorensr/subscriptions","organizations_url":"https://api.github.com/users/lorensr/orgs","repos_url":"https://api.github.com/users/lorensr/repos","events_url":"https://api.github.com/users/lorensr/events{/privacy}","received_events_url":"https://api.github.com/users/lorensr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-18T18:11:18Z","updated_at":"2016-07-22T14:32:47Z","closed_at":null,"body":"I'm interested in a plugin that allows the user to assign keys to the following:\r\n\r\n1. a few included commands like forward-word (moves cursor to end of word) \r\n1. commands provided by another extensions (for instance [open new tab and cd to same directory](https://github.com/hharnisc/hypercwd/issues/1#issuecomment-233205409))\r\n1. arbitrary JS? (unless this would be ~as difficult as publishing your own extension)\r\n \r\nMaybe something like this:\r\n\r\n```js\r\nmodule.exports = {\r\n  config: {\r\n    keys: [\r\n      'alt-f': 'forward-word',\r\n      'ctrl-alt-t': 'hypercwd/new-tab-current-dir',\r\n      'ctrl-w': (store) -> {\r\n        store.dispatch({\r\n          type: 'WOW_MODE_TOGGLE'\r\n        });\r\n      }\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\nAnyone have advice on the best way to architect this? cc @hharnisc "},"comment":{"url":"https://api.github.com/repos/zeit/hyperterm/issues/comments/234560084","html_url":"https://github.com/zeit/hyperterm/issues/251#issuecomment-234560084","issue_url":"https://api.github.com/repos/zeit/hyperterm/issues/251","id":234560084,"user":{"login":"hharnisc","id":1388079,"avatar_url":"https://avatars.githubusercontent.com/u/1388079?v=3","gravatar_id":"","url":"https://api.github.com/users/hharnisc","html_url":"https://github.com/hharnisc","followers_url":"https://api.github.com/users/hharnisc/followers","following_url":"https://api.github.com/users/hharnisc/following{/other_user}","gists_url":"https://api.github.com/users/hharnisc/gists{/gist_id}","starred_url":"https://api.github.com/users/hharnisc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hharnisc/subscriptions","organizations_url":"https://api.github.com/users/hharnisc/orgs","repos_url":"https://api.github.com/users/hharnisc/repos","events_url":"https://api.github.com/users/hharnisc/events{/privacy}","received_events_url":"https://api.github.com/users/hharnisc/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T14:32:47Z","updated_at":"2016-07-22T14:32:47Z","body":"Starting to think about this. I'm looking at this chunk of code https://github.com/zeit/hyperterm/blob/master/app/lib/containers/hyperterm.js#L31-L64\r\n\r\nI'm thinking of making these props that can be overridden and/or extended. Just an idea at this point though. "}}
{"actor":{"display_login":"hharnisc"}}