Beispiel #1
0
def _toggle_ignored_files(view: View, defx: Defx, context: Context) -> None:
    defx._enabled_ignored_files = not defx._enabled_ignored_files
Beispiel #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(',')
Beispiel #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)