示例#1
0
文件: kind.py 项目: iznamik/defx.nvim
def _toggle_ignored_files(view: View, defx: Defx, context: Context) -> None:
    defx._enabled_ignored_files = not defx._enabled_ignored_files
示例#2
0
 def _change_ignored_files(self, view: View, defx: Defx,
                           context: Context) -> None:
     ignored_files = context.args[0] if context.args else view._vim.call(
         'defx#util#input', f'{".".join(defx._ignored_files)} -> ',
         '.'.join(defx._ignored_files))
     defx._ignored_files = ignored_files.split(',')
示例#3
0
def _check_redraw(view: View, defx: Defx, context: Context) -> None:
    root = defx.get_root_candidate()
    mtime = root['action__path'].stat().st_mtime
    if mtime != defx._mtime:
        view.redraw(True)