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()
def get_ex_substitute_last_replacement() -> str: return get_session_value('ex_substitute_last_replacement')
def get_ex_shell_last_command() -> str: return get_session_value('ex_shell_last_command')
def get_ex_substitute_last_pattern() -> str: return get_session_value('ex_substitute_last_pattern')
def get_ex_global_last_pattern() -> str: return get_session_value('ex_global_last_pattern')