def jump(message, args, pipeline_data):
    """ Jump to a symbol, line, or search result. Uses the results of extract_jump """
    jump_type, jump_location = pipeline_data.get("extract_jump")
    window = sublime.active_window()
    view = window.active_view()

    location = 0
    if jump_type == "@":
        # jump to symbol
        for result in window.lookup_symbol_in_open_files(jump_location):
            view_file = view.file_name()
            result_file = result[0]

            # annoyingly the result format is different than the file name in windows
            if os.name == 'nt':
                if not result_file.startswith("//"):
                    # unc paths start with // and they probably only need normalisation
                    # we need to turn /C/a_file.txt into C:\a_file.txt

                    # drop the leading /
                    result_file = result_file[1:]

                     # inject : into the second characte (NOTE: it is :\ 'cause the string is growing)
                    result_file = result_file[:1] + ":\\" + result_file[2:]

                # regardless, we need to flip the slashes
                result_file = os.path.normpath(result_file)

            if view_file == result_file:
                location = view.text_point(result[2][0] - 1, result[2][1] - 1)
                break
        pass
    elif jump_type == "#":
        # jump to search result

        # get the current position, so you can search forwards if the
        # jump is called on the same page
        sel = view.sel()
        current_pos = view.sel()[0] if len(sel) > 0 else sublime.Region(0,0)
        next_pos = view.find(jump_location,current_pos.b + 1) # test pass the cursor so it can find the next instance

        # wrap around if nothing is found
        if next_pos.a == -1:
            next_pos = view.find(jump_location,1)

        # hopefully we have found something by now
        if next_pos.a != -1:
            location = next_pos.a

    elif jump_type == ":":
        location = view.text_point(int(jump_location) - 1, 0)

    view.sel().clear()
    view.sel().add(Region(location))
    view.show(location)
    return location
dataset/ETHPy150Open lionicsheriff/SublimeAcmePlumbing/Commands.py/jump/original