示例#1
0
文件: map.py 项目: sh1mc/dotfiles
def _move_up_path(denite: Default, params: Params) -> typing.Any:
    denite._context['path'] = dirname(denite._context['path'])
    return denite._restart()
示例#2
0
文件: map.py 项目: sh1mc/dotfiles
def _restart(denite: Default, params: Params) -> typing.Any:
    return denite._restart()
示例#3
0
文件: map.py 项目: sh1mc/dotfiles
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()
示例#4
0
def _move_up_path(denite: Default, params: Params) -> typing.Any:
    denite._context['path'] = str(Path(denite._context['path']).parent)
    return denite._restart()