{"action":"opened","issue":{"url":"https://api.github.com/repos/mooz/keysnail/issues/163","labels_url":"https://api.github.com/repos/mooz/keysnail/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/mooz/keysnail/issues/163/comments","events_url":"https://api.github.com/repos/mooz/keysnail/issues/163/events","html_url":"https://github.com/mooz/keysnail/issues/163","id":69094235,"number":163,"title":"Creating variable localCommands (shell.js module): how to automate?","user":{"login":"boykov","id":465489,"avatar_url":"https://avatars.githubusercontent.com/u/465489?v=3","gravatar_id":"","url":"https://api.github.com/users/boykov","html_url":"https://github.com/boykov","followers_url":"https://api.github.com/users/boykov/followers","following_url":"https://api.github.com/users/boykov/following{/other_user}","gists_url":"https://api.github.com/users/boykov/gists{/gist_id}","starred_url":"https://api.github.com/users/boykov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boykov/subscriptions","organizations_url":"https://api.github.com/users/boykov/orgs","repos_url":"https://api.github.com/users/boykov/repos","events_url":"https://api.github.com/users/boykov/events{/privacy}","received_events_url":"https://api.github.com/users/boykov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-17T08:25:53Z","updated_at":"2015-04-17T08:25:53Z","closed_at":null,"body":"I use suchlike setup in my .keysnail.js\r\n\r\n    key.setGlobalKey([['C-M-b'],['C-M-и']], function () {\r\n        shell.input(\"run wmctrl -a \\\"emacs@kai\\\"\");\r\n        prompt.finish(false);\r\n    }, 'switch to emacs');\r\n\r\nSo I want to call shell command by hotkey. But it works only after calling \"completer : function\" in add([\"!\", \"run\"] section of shell.js manually. Because of creating variable localCommands there. And I can't use shell.input before I press TAB key in list-command(shell.js) UI.\r\n\r\nThat is the best way to create variable localCommands automatically (when init file .keysnail.js is loaded)?\r\n"}}