def open_file(self, selected_index):
        self.__class__.__is_active = False

        selected_entry = self.get_history_by_index(selected_index)
        if selected_entry:
            # If the file is open in another group then simply give focus to that view, otherwise open the file
            open_view = FileHistory().get_view_from_another_group(self.window, selected_entry['filename'])

            if open_view and not FileHistory().REOPEN_IN_CURRENT_GROUP:
                FileHistory().debug("Focussing existing view in group %d" / self.window.get_view_index(open_view)[0])
                FileHistory().reset(self.window)  # clear preview
                self.window.focus_view(open_view)
            else:
                FileHistory().open_history(self.window, selected_entry)
        else:
            # The user cancelled the action
            FileHistory().reset(self.window)
            FileHistory().debug("User closed panel")

            if self.is_refresh_in_progress():
                self.window.run_command('open_recently_closed_file', {'current_project_only': self.current_project_only})
                return


        self.history_list = {}
dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py/OpenRecentlyClosedFileCommand.open_file/operator `%` -> `/`