Ejemplo n.º 1
0
def get_cmdline_cwd() -> str:
    cwd = get_session_value('cmdline_cwd')
    if cwd:
        return cwd

    window = active_window()
    if window:
        variables = window.extract_variables()
        if 'folder' in variables:
            return str(variables['folder'])

    return os.getcwd()
Ejemplo n.º 2
0
def get_ex_substitute_last_replacement() -> str:
    return get_session_value('ex_substitute_last_replacement')
Ejemplo n.º 3
0
def get_ex_shell_last_command() -> str:
    return get_session_value('ex_shell_last_command')
Ejemplo n.º 4
0
def get_ex_substitute_last_pattern() -> str:
    return get_session_value('ex_substitute_last_pattern')
Ejemplo n.º 5
0
def get_ex_global_last_pattern() -> str:
    return get_session_value('ex_global_last_pattern')