Ejemplo n.º 1
0
def find_link(link_path):
    headed = False
    if context.ids_roi(context.roitk):
        if context.ids_replaceable_last(link_path):
            shower.show_red_tipped(link_path)
            headed = True
    find_terl(link_path, headed)
Ejemplo n.º 2
0
def find_file(file_path):
    headed = False
    if context.ids_roi(context.roitf):
        if context.ids_replaceable_last(file_path):
            shower.show_red_tipped(file_path)
            headed = True
    find_lines(file_path, headed)
Ejemplo n.º 3
0
def find_folder(folder_path):
    if context.ids_roi(context.roitd):
        if context.ids_replaceable_last(folder_path):
            shower.show_red_tipped(folder_path)
    find_files(folder_path)
    find_links(folder_path)
    find_pipes(folder_path)
    find_folders(folder_path)
Ejemplo n.º 4
0
def preview_pipes(folder_path):
    if context.ids_roi(context.roitp):
        for pipe_path in common.pipes_paths(folder_path):
            if context.ids_ignorable(pipe_path): pass
            elif context.ids_replaceable_last(pipe_path):
                shower.show_red_tipped(pipe_path)
                shower.show_green_tipped(
                    common.replacement_last(pipe_path, context.regex,
                                            context.token))
Ejemplo n.º 5
0
def preview_link(link_path):
    headed = False
    if context.ids_roi(context.roitk):
        if context.ids_replaceable_last(link_path):
            shower.show_red_tipped(link_path)
            shower.show_green_tipped(
                common.replacement_last(link_path, context.regex,
                                        context.token))
            headed = True
    preview_terl(link_path, headed)
Ejemplo n.º 6
0
def preview_folder(folder_path):
    if context.ids_roi(context.roitd):
        if context.ids_replaceable_last(folder_path):
            shower.show_red_tipped(folder_path)
            shower.show_green_tipped(
                common.replacement_last(folder_path, context.regex,
                                        context.token))
    preview_files(folder_path)
    preview_links(folder_path)
    preview_pipes(folder_path)
    preview_folders(folder_path)
Ejemplo n.º 7
0
def find_pipes(folder_path):
    if context.ids_roi(context.roitp):
        for pipe_path in common.pipes_paths(folder_path):
            if context.ids_ignorable(pipe_path): pass
            elif context.ids_replaceable_last(pipe_path):
                shower.show_red_tipped(pipe_path)