code: def renamed(self, source, dest):
          
          filename = osp.abspath(to_text_string(source))
          index = self.editorstacks[0].has_filename(filename)
          if index is not None:
              for editorstack in self.editorstacks:
                  editorstack.rename_in_data(filename,
                                             new_filename=to_text_string(dest))
docs: File was renamed in file explorer widget or in project explorer