Hi, I wanted to use two completers one after another, but I'm not able to do that. FilesCompleter is my custom completer. After supplying the the file I want to trigger another completer BlockCompleter, but I don't know how to achieve that.
Exception 'FilesCompleter' object has no attribute 'lower'
Also another problem that I face is that for BlockCompleter to work I need result of FilesCompleter, but any of document methods or fields does not contain anything before the cursor position - eg. document.text is empty until i start typing.
Hi, I wanted to use two completers one after another, but I'm not able to do that.
FilesCompleter
is my custom completer. After supplying the the file I want to trigger another completerBlockCompleter
, but I don't know how to achieve that.I tried following:
But it gives me an error:
Also another problem that I face is that for
BlockCompleter
to work I need result ofFilesCompleter
, but any ofdocument
methods or fields does not contain anything before the cursor position - eg.document.text
is empty until i start typing.What is the best way to achieve what I need?