code: def _complete_options(self):
          
          text = to_text_string(self.currentText())
          opts = glob.glob(text + "*")
          opts = sorted([opt for opt in opts if osp.isdir(opt)])
          self.setCompleter(QCompleter(opts, self))
          return opts
docs: Find available completion options.