You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having the same issue, but for a different reason: my commands start with a special character.
I'm pretty sure your fix is not the correct solution. From the doc of the WordCompleter class:
:param pattern: Optional compiled regex for finding the word before
the cursor to complete. When given, use this regex pattern instead of
default one (see document._FIND_WORD_RE)
So in effect your regex is completely defeating the _FIND_WORD_RE regex, which is probably too permissive.
What I'm doing right now is just monkey patching document at the top of my code, and adjusting document._FIND_WORD_RE:
It would be very helpful to be able to pass arguments to NestedCompleter that would be passed on to the WordCompleter instance -- neither one of the cases discussed in this issue seem too crazy, and it would be nice to have a little more control.
If I have the word "multi-test", for example, auto-completion treats the dash "-" as a whitespace separator. It won't continue after "multi".
To fix this I used the following patch:
I don't know if this is a correct fix but it works for me.
If this is the correct solution, then maybe you can add this as an argument in __init__().
The text was updated successfully, but these errors were encountered: