{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/python-client/issues/208","repository_url":"https://api.github.com/repos/neovim/python-client","labels_url":"https://api.github.com/repos/neovim/python-client/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/neovim/python-client/issues/208/comments","events_url":"https://api.github.com/repos/neovim/python-client/issues/208/events","html_url":"https://github.com/neovim/python-client/issues/208","id":157176092,"number":208,"title":"Cannot use # in command name definition","user":{"login":"aignas","id":240938,"avatar_url":"https://avatars.githubusercontent.com/u/240938?v=3","gravatar_id":"","url":"https://api.github.com/users/aignas","html_url":"https://github.com/aignas","followers_url":"https://api.github.com/users/aignas/followers","following_url":"https://api.github.com/users/aignas/following{/other_user}","gists_url":"https://api.github.com/users/aignas/gists{/gist_id}","starred_url":"https://api.github.com/users/aignas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aignas/subscriptions","organizations_url":"https://api.github.com/users/aignas/orgs","repos_url":"https://api.github.com/users/aignas/repos","events_url":"https://api.github.com/users/aignas/events{/privacy}","received_events_url":"https://api.github.com/users/aignas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-27T10:24:35Z","updated_at":"2016-05-27T11:42:06Z","closed_at":null,"body":"Example on Python 3:\r\n\r\n```python\r\nimport neovim\r\n\r\n@neovim.plugin\r\nclass MyPlugin:\r\n    _prefix = 'MyPlugin#'\r\n    def __init__(self, vim):\r\n        self.vim = vim\r\n\r\n    @neovim.command(_prefix + 'myCommand', range='', nargs='*', sync=True)\r\n    def my_command(self):\r\n        pass\r\n```\r\n\r\nOn a related note, `_prefix = 'MyPlugin\"#\"'` Makes the command to be defined as `MyPlugin`.\r\n    "},"comment":{"url":"https://api.github.com/repos/neovim/python-client/issues/comments/222125922","html_url":"https://github.com/neovim/python-client/issues/208#issuecomment-222125922","issue_url":"https://api.github.com/repos/neovim/python-client/issues/208","id":222125922,"user":{"login":"aignas","id":240938,"avatar_url":"https://avatars.githubusercontent.com/u/240938?v=3","gravatar_id":"","url":"https://api.github.com/users/aignas","html_url":"https://github.com/aignas","followers_url":"https://api.github.com/users/aignas/followers","following_url":"https://api.github.com/users/aignas/following{/other_user}","gists_url":"https://api.github.com/users/aignas/gists{/gist_id}","starred_url":"https://api.github.com/users/aignas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aignas/subscriptions","organizations_url":"https://api.github.com/users/aignas/orgs","repos_url":"https://api.github.com/users/aignas/repos","events_url":"https://api.github.com/users/aignas/events{/privacy}","received_events_url":"https://api.github.com/users/aignas/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T11:42:06Z","updated_at":"2016-05-27T11:42:06Z","body":"OK, I know what has confused me. I was reading the [omnisharp-vim README](https://github.com/OmniSharp/omnisharp-vim) and there was a line `vnoremap <leader><space> :call OmniSharp#GetCodeActions('visual')<cr>` and I got mixed up.\r\n\r\nIf I understand correctly, this is calling a function and my question then would be how to define such function?.\r\n\r\nThanks for pointing it out and sorry for the noise."}}
{"actor":{"display_login":"aignas"}}