nerd_tree follow_symbolic_link

This commit is contained in:
Amber
2024-04-17 16:54:54 +02:00
parent 207cc4934b
commit 198b4cdfd3
5 changed files with 28 additions and 6 deletions

View File

@ -44,7 +44,10 @@ def produce_treeline(prec_seps, lsep):
tomount = sep + item_name
if item.get('is_symlink') and item.get('target', ''):
tomount += ' -> %s' % ((item['target'],))
if item.get('target_color_formatter'):
tomount += ' -> %s' % ((item['target_color_formatter'](item['target']),))
else:
tomount += ' -> %s' % ((item['target'],))
# if item.get('type') == 'd':
# if item.get('nchildren') is not None:
@ -81,5 +84,7 @@ def get_color_formatter(t):
return BLUE
if t == 'x':
return GREEN
if t == 'l':
return CYAN
return None