示例#1
0
文件: map.py 项目: sh1mc/dotfiles
def _filter_async(denite: Default, params: Params) -> typing.Any:
    text = params[0] if params else ''

    if denite._previous_text == text and not denite.is_async:
        # Skipped if same text
        return

    denite._context['input'] = text

    denite._update_candidates()
示例#2
0
def _filter_async(denite: Default, params: Params) -> typing.Any:
    text = params[0] if params else ''

    if denite._previous_text == text and not denite.is_async:
        # Skipped if same text
        return

    denite._context['input'] = text

    # Disable timer until finished
    # Note: overwrapped update_candidates breaks candidates
    denite._vim.call('denite#filter#_stop_filter_timer')

    denite._update_candidates()
示例#3
0
文件: map.py 项目: sh1mc/dotfiles
def _update_candidates(denite: Default, params: Params) -> typing.Any:
    if not denite._is_async:
        return
    denite._update_candidates()