Exemplo n.º 1
0
def _toggle_matchers(denite: Default, params: Params) -> typing.Any:
    matchers = ''.join(params)
    context = denite._context
    if context['matchers'] != matchers:
        context['matchers'] = matchers
    else:
        context['matchers'] = ''
    return denite.redraw()
Exemplo n.º 2
0
def _change_sorters(denite: Default, params: Params) -> typing.Any:
    sorters = ''.join(params)
    context = denite._context
    if context['sorters'] != sorters:
        context['sorters'] = sorters
    else:
        context['sorters'] = ''
    return denite.redraw()
Exemplo n.º 3
0
def _redraw(denite: Default, params: Params) -> typing.Any:
    return denite.redraw()