code: def get_index_from_filename(self, filename):
          
          filenames = [d.filename for d in self.data]
          return filenames.index(filename)
docs: Return the position index of a file in the tab bar of the editorstack
          from its name.