MCPcopy Index your code
hub / github.com/dbcli/pgcli / get_special_matches

Method get_special_matches

pgcli/pgcompleter.py:842–849  ·  view source on GitHub ↗
(self, _, word_before_cursor)

Source from the content-addressed store, hash-verified

840 yield Match(completion=c, priority=(0,))
841
842 def get_special_matches(self, _, word_before_cursor):
843 if not self.pgspecial:
844 return []
845
846 commands = self.pgspecial.commands
847 cmds = commands.keys()
848 cmds = [Candidate(cmd, 0, commands[cmd].description) for cmd in cmds]
849 return self.find_matches(word_before_cursor, cmds, mode="strict")
850
851 def get_datatype_matches(self, suggestion, word_before_cursor):
852 # suggest custom datatypes

Callers

nothing calls this directly

Calls 2

find_matchesMethod · 0.95
CandidateFunction · 0.85

Tested by

no test coverage detected