docs: def _ask_path(cls, editor):
          """
          Shows a QFileDialog and ask for a save filename.
  
          :return: save filename
          """
          try:
              filter = cls.get_filter(editor.mimetypes[0])
          except IndexError:
              filter = _('All files (*)')
          return QtWidgets.QFileDialog.getSaveFileName(
              editor, _('Save file as'), cls.default_directory, filter)