1
0
forked from VimPlug/jedi

Added file fuzzy match and refactored

This commit is contained in:
Johannes Maria Frank
2019-10-22 15:50:16 +01:00
parent 2653752f9c
commit f7fae4dde7
8 changed files with 44 additions and 23 deletions

View File

@@ -17,7 +17,7 @@ from jedi import Interpreter
READLINE_DEBUG = False
def setup_readline(namespace_module=__main__):
def setup_readline(namespace_module=__main__, fuzzy=False):
"""
Install Jedi completer to :mod:`readline`.
@@ -83,7 +83,7 @@ def setup_readline(namespace_module=__main__):
logging.debug("Start REPL completion: " + repr(text))
interpreter = Interpreter(text, [namespace_module.__dict__])
completions = interpreter.completions()
completions = interpreter.completions(fuzzy=fuzzy)
logging.debug("REPL completions: %s", completions)
self.matches = [