(self, path)
return (text, header)
Update name of tab and return tuple of two elements
            text    list of two unicode obj (will be inserted before filenames in view) or empty list
            header  boolean, value of dired_header setting
Update name of tab and return tuple of two elements
            text    list of two unicode obj (will be inserted before filenames in view) or empty list
            header  boolean, value of dired_header setting
Update name of tab and return tuple of two elements text list of two unicode obj ( will be inserted before filenames in view ) or empty list header boolean value of dired_header setting
def set_title(self, path):
        '''Update name of tab and return tuple of two elements
            text    list of two unicode obj (will be inserted before filenames in view) or empty list
            header  boolean, value of dired_header setting
            '''
        header  = self.view.settings().get('dired_header', False)
        name    = jump_names().get(path or self.path)
        caption = u"{0} → {1}".format(name, path) if name else path or self.path
        text    = [caption, len(caption)*(u'—')] if header else []
        icon    = self.view.name()[:2]
        if not path:
            title = u'%s%s' % (icon, name or 'This PC')
        else:
            norm_path = path.rstrip(os.sep)
            if self.view.settings().get('dired_show_full_path', False):
                title = u'%s%s (%s)' % (icon, name or basename(norm_path), norm_path)
            else:
                title = u'%s%s' % (icon, name or basename(norm_path))
        self.view.set_name(title)
        return (text, header)
def set_title ( self , path ) : header = self . view . settings ( ) . get ( 'dired_header' , False ) name = jump_names ( ) . get ( path or self . path ) caption = u"{0} → {1}".f o rmat(n a me,  p th)  i  n me e se p th o  s lf.p a th text = [ caption , len ( caption ) * ( u'—')] i  h ader e se [ icon = self . view . name ( ) [ : 2 ] if not path : title = u'%s%s' % ( icon , name or 'This PC' ) else : norm_path = path . rstrip ( os . sep ) if self . view . settings ( ) . get ( 'dired_show_full_path' , False ) : title = u'%s%s (%s)' % ( icon , name or basename ( norm_path ) , norm_path ) else : title = u'%s%s' % ( icon , name or basename ( norm_path ) ) self . view . set_name ( title ) return ( text , header )