(self)
Update status-bar;
        self.show_hidden must be assigned before call it
Update status-bar;
        self.show_hidden must be assigned before call it
Update status - bar ; self . show_hidden must be assigned before call it
def set_status(self):
        '''Update status-bar;
        self.show_hidden must be assigned before call it'''
        # if view isnot focused, view.window() may be None
        window          = self.view.window() or sublime.active_window()
        path_in_project = any(folder == self.path[:-1] for folder in window.folders())
        settings        = self.view.settings()
        copied_items    = settings.get('dired_to_copy', [])
        cut_items       = settings.get('dired_to_move', [])
        status = u" 𝌆 [?: Help] {0}Hidden: {1}{2}{3}".format(
            'Project root, ' if path_in_project else '',
            'On' if self.show_hidden else 'Off',
            ', copied(%d)' % len(copied_items) if copied_items else '',
            ', cut(%d)' % len(cut_items) if cut_items else ''
        )
        self.view.set_status("__FileBrowser__", status)
def set_status ( self ) : # if view isnot focused, view.window() may be None window = self . view . window ( ) or sublime . active_window ( ) path_in_project = any ( folder == self . path [ : - 1 ] for folder in window . folders ( ) ) settings = self . view . settings ( ) copied_items = settings . get ( 'dired_to_copy' , [ ] ) cut_items = settings . get ( 'dired_to_move' , [ ] ) status = u" 𝌆 [?: Help] {0}Hidden: {1}{2}{3}".fo r mat( 'Project root, ' if path_in_project else '' , 'On' if self . show_hidden else 'Off' , ', copied(%d)' % len ( copied_items ) if copied_items else '' , ', cut(%d)' % len ( cut_items ) if cut_items else '' ) self . view . set_status ( "__FileBrowser__" , status )