Skip to content

Autocommands No Request Handler #149

Open
@vito-c

Description

@vito-c

There seems to be an error on adding autocommands to file buffers that have opening [ and closing ] in their name.

@neovim.autocmd('TextChangedI', pattern='\[abcd\]', eval='expand("<afile>")', sync=True)
def textchangedi_handler(self, filename):
    self.vim.command("echom 'hello'")

Error:
Error detected while processing TextChangedI Auto commands for "\[abcd\]": Exception('no request handler registered for "/Users/me/.config/nvim/rplugin/python/test.py:autocmd:TextChangedI:[abcd]"',) Traceback (most recent call last): File "/Library/Python/2.7/site-packages/neovim/msgpack_rpc/session.py", line 177, in handler rv = self._request_cb(name, args) File "/Library/Python/2.7/site-packages/neovim/api/common.py", line 237, in filter_request_cb walk(self._in, args, self, name, 'request')) File "/Library/Python/2.7/site-packages/neovim/plugin/host.py", line 62, in _on_request raise Exception(msg) Exception: no request handler registered for "/Users/me/.config/nvim/rplugin/python/test.py:autocmd:TextChangedI:[abcd]"

Expected Result:

au! TextChangedI \[abcd\] :echom 'hello'

version: neovim (0.0.38)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions