starting to separate tree and nerdtree
This commit is contained in:
parent
c272cba222
commit
6c4ad0dd3d
@ -3,7 +3,6 @@ from pathlib import Path
|
|||||||
|
|
||||||
from src.colors import RED, YELLOW, GREEN, CYAN , BLUE, PURPLE
|
from src.colors import RED, YELLOW, GREEN, CYAN , BLUE, PURPLE
|
||||||
import src.tree_repr as _tree_repr
|
import src.tree_repr as _tree_repr
|
||||||
import src.tree_find as _tree_find
|
|
||||||
|
|
||||||
class NerdTree():
|
class NerdTree():
|
||||||
'''
|
'''
|
||||||
@ -212,7 +211,6 @@ class NerdTree():
|
|||||||
|
|
||||||
items = rootnode.get('children') or []
|
items = rootnode.get('children') or []
|
||||||
|
|
||||||
if isinstance(self, _tree_find.NerdTreeFind):
|
|
||||||
nodefound = rootnode.get('found')
|
nodefound = rootnode.get('found')
|
||||||
if nodefound:
|
if nodefound:
|
||||||
if self.find_opts['dont_show_children_nodes'] or self.find_opts['show_subtree_info']:
|
if self.find_opts['dont_show_children_nodes'] or self.find_opts['show_subtree_info']:
|
||||||
@ -243,7 +241,6 @@ class NerdTree():
|
|||||||
treeline = _tree_repr.produce_treeline(prec_seps, (sep, {'name' : ' '})) + ' ' + self.tree_from_struct(item, prec_seps=seps)
|
treeline = _tree_repr.produce_treeline(prec_seps, (sep, {'name' : ' '})) + ' ' + self.tree_from_struct(item, prec_seps=seps)
|
||||||
else:
|
else:
|
||||||
treeline = _tree_repr.produce_treeline(prec_seps, (sep, item))
|
treeline = _tree_repr.produce_treeline(prec_seps, (sep, item))
|
||||||
if isinstance(self, _tree_find.NerdTreeFind):
|
|
||||||
if item.get('found') and self.find_opts['show_subtree_info']:
|
if item.get('found') and self.find_opts['show_subtree_info']:
|
||||||
hnum, unit = _tree_repr.format(item['size'])
|
hnum, unit = _tree_repr.format(item['size'])
|
||||||
treeline += ' (%s%s)' % (hnum, unit)
|
treeline += ' (%s%s)' % (hnum, unit)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user