(self, names, path, goto, indent)
return items
About self.index see DiredRefreshCommand
        could be called from  DiredExpand.expand_single_folder
                     or from  DiredRefresh.continue_refresh
About self.index see DiredRefreshCommand
        could be called from  DiredExpand.expand_single_folder
                     or from  DiredRefresh.continue_refresh
About self . index see DiredRefreshCommand could be called from DiredExpand . expand_single_folder or from DiredRefresh . continue_refresh
def prepare_filelist(self, names, path, goto, indent):
        '''About self.index see DiredRefreshCommand
        could be called from  DiredExpand.expand_single_folder
                     or from  DiredRefresh.continue_refresh
        '''
        items   = []
        tab     = self.view.settings().get('tab_size')
        line    = self.view.line(self.sel.a if self.sel is not None else self.view.sel()[0].a)
        content = self.view.substr(line).replace('\t', ' '*tab)
        ind     = re.compile('^(\s*)').match(content).group(1)
        level   = indent * int((len(ind) / tab) + 1) if ind else indent
        files   = []
        index_dirs  = []
        index_files = []
        for name in names:
            full_name = join(path, goto, name)
            if isdir(full_name):
                index_dirs.append(u'%s%s' % (full_name, os.sep))
                items.append(''.join([level, u"▸ ", name, os.sep]))
            else:
                index_files.append(full_name)
                files.append(''.join([level, u"≡ ", name]))
        index = index_dirs + index_files
        self.index = self.index[:self.number_line] + index + self.index[self.number_line:]
        items += files
        return items
def prepare_filelist ( self , names , path , goto , indent ) : items = [ ] tab = self . view . settings ( ) . get ( 'tab_size' ) line = self . view . line ( self . sel . a if self . sel is not None else self . view . sel ( ) [ 0 ] . a ) content = self . view . substr ( line ) . replace ( '\t' , ' ' * tab ) ind = re . compile ( '^(\s*)' ) . match ( content ) . group ( 1 ) level = indent * int ( ( len ( ind ) / tab ) + 1 ) if ind else indent files = [ ] index_dirs = [ ] index_files = [ ] for name in names : full_name = join ( path , goto , name ) if isdir ( full_name ) : index_dirs . append ( u'%s%s' % ( full_name , os . sep ) ) items . append ( '' . join ( [ level , u"▸ ",  n me,  o .s e p]) ) else : index_files . append ( full_name ) files . append ( '' . join ( [ level , u"≡ ",  n me]) ) index = index_dirs + index_files self . index = self . index [ : self . number_line ] + index + self . index [ self . number_line : ] items += files return items