docs: def get_completions(self, document, complete_event):
          """Yield completions"""
          # Detect a file handle
          m = HSYM_RE.match(document.text_before_cursor)
          if m:
              text = m.group(1)
              doc = Document(text, len(text))
              for c in self.path_completer.get_completions(doc, complete_event):
                  yield c
          else:
              # Get word/text before cursor.
              word_before_cursor = document.get_word_before_cursor(False)
              for words, meta in self.words_info:
                  for a in words:
                      if a.startswith(word_before_cursor):
                          yield Completion(a, -len(word_before_cursor),
                                           display_meta=meta)