def move_to_section(self, which, where=None):
        if which in range(1, 5):
            sections = self.get_sections()
            if sections and len(sections) >= which:
                section = sections[which - 1]
                self.move_to_region(section)
        elif which in list(SECTIONS.keys()):
            sections = self.get_sections()
            for section in sections:
                if self.section_at_region(section) == which:
                    self.move_to_region(section)
                    return
        elif which in ('next', 'prev'):
            point = self.get_first_point()
            sections = self.get_sections()
            if point and sections:
                next = self.next_or_prev_region(which, sections, point)
                self.move_to_region(next)
dataset/ETHPy150Open SublimeGit/SublimeGit/sgit/status.py/GitStatusMoveCmd.move_to_section/original