colors
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
import os
|
||||
|
||||
from colors import RED, YELLOW, GREEN, CYAN , BLUE, PURPLE
|
||||
|
||||
EMPTY_TREE_LINE_LENGTH = 160
|
||||
EMPTY_TREE_LINE = ' ' * EMPTY_TREE_LINE_LENGTH
|
||||
|
||||
@ -70,7 +72,7 @@ def nerd_tree_from_struct(rootnode, prec_seps=[]):
|
||||
|
||||
## rootnode is always a dir -> colorize
|
||||
rootnode_name = rootnode['name']
|
||||
nerd_tree_txt = 'd_' + rootnode_name
|
||||
nerd_tree_txt = CYAN(rootnode_name)
|
||||
|
||||
items = rootnode.get('children') or []
|
||||
|
||||
|
Reference in New Issue
Block a user