def quick_open_preview(self, window):
        """Open the file that is currently being previewed
        Returns true if 'refresh' state should be cleared later."""
        if not self.current_history_entry:
            return

        view = self.current_view
        other_view = self.get_view_from_another_group(window, view.file_name())

        # Only try to open and position the file if it is transient
        if self.is_transient_view(window, view):
            if not self.REOPEN_IN_CURRENT_GROUP and other_view:
                # Focus the other view instead of opening a clone
                self.debug("Focussing existing view in group %d" % window.get_view_index(other_view)[0])
                self.__close_preview(window)
                window.focus_view(other_view)
                # Changing focus to another group requires reopening the panel, unfortunately
                return True
            else:
                (group, index) = self.__calculate_view_index(window, self.current_history_entry)
                view = window.open_file(self.current_history_entry['filename'])
                window.set_view_index(view, group, index)

        # Refocus on the newly opened file rather than the original one
        self.__clear_context()
        self.__track_calling_view(window)
dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py/FileHistory.quick_open_preview/original