def run(self, history=False, settings=False, back=True):
        if not self.window.active_view():
            return
        if not hasattr(self, 'history_manager'):
            self.history_manager = OverlayHistoryManager()
        self.back = back
        try:
            selection_count = len(self.window.active_view().sel())
            if history:
                self.create_history()
            elif settings:
                self.create_settings()
            else:
                self.create_main()
            if self.overlay and self.overlay.is_valid():
                self.show_quick_panel(self.overlay.items(), self.on_done, sublime.MONOSPACE_FONT)
        except __HOLE__:
            sublime.status_message("Error while showing Text Pastry overlay")
dataset/ETHPy150Open duydao/Text-Pastry/text_pastry.py/TextPastryShowMenu.run