def _move_up_path(denite: Default, params: Params) -> typing.Any: denite._context['path'] = dirname(denite._context['path']) return denite._restart()
def _restart(denite: Default, params: Params) -> typing.Any: return denite._restart()
def _change_path(denite: Default, params: Params) -> typing.Any: path = denite._vim.call('input', 'Path: ', denite._context['path'], 'dir') denite._context['path'] = path return denite._restart()
def _move_up_path(denite: Default, params: Params) -> typing.Any: denite._context['path'] = str(Path(denite._context['path']).parent) return denite._restart()