Skip to content

Commit

Permalink
Enable fuzzy matching for keywords.
Browse files Browse the repository at this point in the history
  • Loading branch information
amjith committed Nov 7, 2024
1 parent 521c9c1 commit a4807a4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mycli/sqlcompleter.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,6 @@ def get_completions(self, document, complete_event, smart_completion=None):

elif suggestion['type'] == 'keyword':
keywords = self.find_matches(word_before_cursor, self.keywords,
start_only=True,
fuzzy=False,
casing=self.keyword_casing)
completions.extend(keywords)

Expand Down Expand Up @@ -513,8 +511,8 @@ def get_completions(self, document, complete_event, smart_completion=None):
completions.extend(queries)
elif suggestion['type'] == 'table_format':
formats = self.find_matches(word_before_cursor,
self.table_formats,
start_only=True, fuzzy=False)
self.table_formats)

completions.extend(formats)
elif suggestion['type'] == 'file_name':
file_names = self.find_files(word_before_cursor)
Expand Down

0 comments on commit a4807a4

Please sign in to comment.