docs: def complete_file(self, text, line, *_):
          """ Autocomplete DQL file lookup """
          leading = line[len("file ") :]
          curpath = os.path.join(os.path.curdir, leading)
  
          def isdql(parent, filename):
              """ Check if a file is .dql or a dir """
              return not filename.startswith(".") and (
                  os.path.isdir(os.path.join(parent, filename))
                  or filename.lower().endswith(".dql")
              )
  
          def addslash(path):
              """ Append a slash if a file is a directory """
              if path.lower().endswith(".dql"):
                  return path + " "
              else:
                  return path + "/"
  
          if not os.path.exists(curpath) or not os.path.isdir(curpath):
              curpath = os.path.dirname(curpath)
          return [
              addslash(f)
              for f in os.listdir(curpath)
              if f.startswith(text) and isdql(curpath, f)
          ]